Make WordPress Core

Ticket #13854: remove-deprecated-functions.diff

File remove-deprecated-functions.diff, 2.9 KB (added by filosofo, 15 years ago)
  • wp-includes/query.php

     
    19721972                        $whichcat .= " AND $wpdb->term_taxonomy.taxonomy = 'post_tag' ";
    19731973                        $include_tags = "'" . implode("', '", $q['tag__in']) . "'";
    19741974                        $whichcat .= " AND $wpdb->term_taxonomy.term_id IN ($include_tags) ";
    1975                         $reqtag = is_term( $q['tag__in'][0], 'post_tag' );
     1975                        $reqtag = term_exists( $q['tag__in'][0], 'post_tag' );
    19761976                        if ( !empty($reqtag) )
    19771977                                $q['tag_id'] = $reqtag['term_id'];
    19781978                }
     
    20002000                        if ( in_array($item, $tagin) && empty($q['cat']) ) continue; // We should already have what we need if categories aren't being used
    20012001
    20022002                        if ( $item != 'category__and' ) {
    2003                                 $reqtag = is_term( $q[$item][0], 'post_tag' );
     2003                                $reqtag = term_exists( $q[$item][0], 'post_tag' );
    20042004                                if ( !empty($reqtag) )
    20052005                                        $q['tag_id'] = $reqtag['term_id'];
    20062006                        }
  • wp-includes/theme-compat/sidebar.php

     
    4141                        <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
    4242
    4343                        <?php /* If this is a search result */ } elseif (is_search()) { ?>
    44                         <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
     44                        <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), esc_html( get_search_query() ) ); ?></p>
    4545
    4646                        <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    4747                        <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
  • wp-includes/deprecated.php

     
    25432543 */
    25442544function is_taxonomy( $taxonomy ) {
    25452545        _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' );
    2546         return taxonomy_exists( $post_type );
     2546        return taxonomy_exists( $taxonomy );
    25472547}
    25482548
    25492549/**
     
    25622562function is_term( $term, $taxonomy = '', $parent = 0 ) {
    25632563        _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
    25642564        return term_exists( $term, $taxonomy, $parent );
    2565 }
    2566  No newline at end of file
     2565}