Ticket #26732: 26732.diff
File 26732.diff, 1.0 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/inc/featured-content.php
329 329 return $terms; 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 } 336 337 } … … 372 373 return $terms; 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 } 379 381 }