- Timestamp:
- 02/07/2014 05:16:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r26556 r27118 330 330 } 331 331 332 $settings = self::get_setting(); 332 333 foreach( $terms as $order => $term ) { 333 if ( self::get_setting( 'tag-id' ) == $term->term_id && 'post_tag'== $term->taxonomy ) {334 if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { 334 335 unset( $terms[ $order ] ); 335 336 } … … 373 374 } 374 375 376 $settings = self::get_setting(); 375 377 foreach( $terms as $order => $term ) { 376 if ( self::get_setting( 'tag-id' ) == $term->term_id) {378 if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { 377 379 unset( $terms[ $term->term_id ] ); 378 380 }
Note: See TracChangeset
for help on using the changeset viewer.