Make WordPress Core

Ticket #26732: 26732.diff

File 26732.diff, 1.0 KB (added by obenland, 11 years ago)
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    329329                        return $terms;
    330330                }
    331331
     332                $settings = self::get_setting();
    332333                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 ) {
    334335                                unset( $terms[ $order ] );
    335336                        }
    336337                }
     
    372373                        return $terms;
    373374                }
    374375
     376                $settings = self::get_setting();
    375377                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 ) {
    377379                                unset( $terms[ $term->term_id ] );
    378380                        }
    379381                }