Making WordPress.org

Changeset 8753


Ignore:
Timestamp:
05/08/2019 08:52:56 PM (6 years ago)
Author:
vedjain
Message:

Revert "WC Campsite17: Content option support ..." SVN r8748

This is causing a bug where sponsor images are not displayed, because of (lilkely) Jetpack interfering with featured image output when content options are disabled. This featured image output is getting used by sponsor shortcode.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017/inc/jetpack.php

    r8748 r8753  
    1616 *
    1717 * See: https://jetpack.com/support/infinite-scroll/
    18  * See: https://jetpack.com/support/content-options/
    1918 * See: https://jetpack.com/support/responsive-videos/
    2019 */
     
    2625            'render'    => __NAMESPACE__ . '\infinite_scroll_render',
    2726            'footer'    => 'page',
    28         )
    29     );
    30 
    31     $featured_image_enabled = ! wcorg_skip_feature( 'cs17_display_featured_image' );
    32     add_theme_support(
    33         'jetpack-content-options',
    34         array(
    35             'featured-images'    => array(
    36                 'archive'           => true,
    37                 'archive-default'   => $featured_image_enabled,
    38                 'post'              => true,
    39                 'post-default'      => $featured_image_enabled,
    40                 'page'              => true,
    41                 'page-default'      => $featured_image_enabled,
    42                 'fallback'          => false,
    43             ),
    4427        )
    4528    );
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-page.php

    r8748 r8753  
    1414<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515    <header class="entry-header">
    16         <?php if ( has_post_thumbnail() ) : ?>
    17             <div class="entry-image">
    18                 <?php the_post_thumbnail(); ?>
    19             </div>
    20         <?php endif; ?>
    21 
    2216        <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    2317    </header>
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content-search.php

    r8748 r8753  
    1414<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1515    <header class="entry-header">
    16         <?php if ( has_post_thumbnail() ) : ?>
    17             <div class="entry-image">
    18                 <?php the_post_thumbnail(); ?>
    19             </div>
    20         <?php endif; ?>
    21 
    2216        <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    2317
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017/template-parts/content.php

    r8748 r8753  
    1515    <header class="entry-header">
    1616        <?php
    17 
    18         if ( has_post_thumbnail() ) : ?>
    19             <div class="entry-image">
    20                 <?php the_post_thumbnail(); ?>
    21             </div>
    22         <?php endif;
    2317
    2418        if ( is_single() ) {
Note: See TracChangeset for help on using the changeset viewer.