Making WordPress.org


Ignore:
Timestamp:
05/08/2019 08:52:56 PM (5 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.

File:
1 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    );
Note: See TracChangeset for help on using the changeset viewer.