Make WordPress Core

Changeset 15229


Ignore:
Timestamp:
06/11/2010 05:49:35 PM (15 years ago)
Author:
nacin
Message:

Don't use deprecated functions. props filosofo, fixes #13854.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r15220 r15229  
    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
  • trunk/wp-includes/query.php

    r15173 r15229  
    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'];
     
    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'];
  • trunk/wp-includes/theme-compat/sidebar.php

    r14771 r15229  
    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'])) { ?>
Note: See TracChangeset for help on using the changeset viewer.