Changeset 28536
- Timestamp:
- 05/22/2014 09:24:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r27595 r28536 107 107 public static function wp_loaded() { 108 108 if ( self::get_setting( 'hide-tag' ) ) { 109 add_filter( 'get_terms', array( __CLASS__, 'hide_featured_term' ), 10, 2);109 add_filter( 'get_terms', array( __CLASS__, 'hide_featured_term' ), 10, 3 ); 110 110 add_filter( 'get_the_terms', array( __CLASS__, 'hide_the_featured_term' ), 10, 3 ); 111 111 } … … 313 313 * @uses Featured_Content::get_setting() 314 314 */ 315 public static function hide_featured_term( $terms, $taxonomies ) {315 public static function hide_featured_term( $terms, $taxonomies, $args ) { 316 316 317 317 // This filter is only appropriate on the front-end. … … 327 327 // Bail if no terms were returned. 328 328 if ( empty( $terms ) ) { 329 return $terms; 330 } 331 332 // Bail if term objects are unavailable. 333 if ( 'all' != $args['fields'] ) { 329 334 return $terms; 330 335 }
Note: See TracChangeset
for help on using the changeset viewer.