Ticket #13854: remove-deprecated-functions.diff
File remove-deprecated-functions.diff, 2.9 KB (added by , 15 years ago) |
---|
-
wp-includes/query.php
1972 1972 $whichcat .= " AND $wpdb->term_taxonomy.taxonomy = 'post_tag' "; 1973 1973 $include_tags = "'" . implode("', '", $q['tag__in']) . "'"; 1974 1974 $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' ); 1976 1976 if ( !empty($reqtag) ) 1977 1977 $q['tag_id'] = $reqtag['term_id']; 1978 1978 } … … 2000 2000 if ( in_array($item, $tagin) && empty($q['cat']) ) continue; // We should already have what we need if categories aren't being used 2001 2001 2002 2002 if ( $item != 'category__and' ) { 2003 $reqtag = is_term( $q[$item][0], 'post_tag' );2003 $reqtag = term_exists( $q[$item][0], 'post_tag' ); 2004 2004 if ( !empty($reqtag) ) 2005 2005 $q['tag_id'] = $reqtag['term_id']; 2006 2006 } -
wp-includes/theme-compat/sidebar.php
41 41 <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> 42 42 43 43 <?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>‘%3$s’</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>‘%3$s’</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> 45 45 46 46 <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 47 47 <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
2543 2543 */ 2544 2544 function is_taxonomy( $taxonomy ) { 2545 2545 _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' ); 2546 return taxonomy_exists( $ post_type);2546 return taxonomy_exists( $taxonomy ); 2547 2547 } 2548 2548 2549 2549 /** … … 2562 2562 function is_term( $term, $taxonomy = '', $parent = 0 ) { 2563 2563 _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' ); 2564 2564 return term_exists( $term, $taxonomy, $parent ); 2565 } 2566 No newline at end of file 2565 }