Ticket #24876: 24876.diff
| File 24876.diff, 1.2 KB (added by , 13 years ago) |
|---|
-
modules/featured-content/featured-content.php
14 14 * 'featured_content_filter' => 'mytheme_get_featured_content', 15 15 * 'description' => 'Describe the featured content area.', 16 16 * 'max_posts' => 20, 17 * 'include_featured' => false, 17 18 * ) ); 18 19 * 19 20 * For maximum compatibility with different methods of posting … … 81 82 add_action( 'admin_init', array( __CLASS__, 'register_setting' ) ); 82 83 add_action( 'save_post', array( __CLASS__, 'delete_transient' ) ); 83 84 add_action( 'delete_post_tag', array( __CLASS__, 'delete_post_tag' ) ); 84 add_action( 'pre_get_posts', array( __CLASS__, 'pre_get_posts' ) ); 85 86 // Exclude featured posts from the blog query when the blog is the front-page. 87 if ( ! isset( $theme_support[0]['include_featured'] ) || false == $theme_support[0]['include_featured'] ) 88 add_action( 'pre_get_posts', array( __CLASS__, 'pre_get_posts' ) ); 85 89 86 90 // Hide "featured" tag from the front-end. 87 91 if ( self::get_setting( 'hide-tag' ) ) {