Changeset 37985 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 07/06/2016 12:39:01 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/deprecated.php (modified) (156 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r37744 r37985 62 62 global $wp_query; 63 63 64 _deprecated_function( __FUNCTION__, '1.5 ', __('new WordPress Loop') );64 _deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') ); 65 65 66 66 // Since the old style loop is being used, advance the query iterator here. … … 135 135 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { 136 136 137 _deprecated_function( __FUNCTION__, '2.0 ', 'previous_post_link()' );137 _deprecated_function( __FUNCTION__, '2.0.0', 'previous_post_link()' ); 138 138 139 139 if ( empty($in_same_cat) || 'no' == $in_same_cat ) … … 170 170 */ 171 171 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { 172 _deprecated_function( __FUNCTION__, '2.0 ', 'next_post_link()' );172 _deprecated_function( __FUNCTION__, '2.0.0', 'next_post_link()' ); 173 173 174 174 if ( empty($in_same_cat) || 'no' == $in_same_cat ) … … 203 203 */ 204 204 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') { 205 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );205 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 206 206 207 207 $author_data = get_userdata($user_id); … … 222 222 */ 223 223 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') { 224 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );224 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 225 225 226 226 $author_data = get_userdata($user_id); … … 241 241 */ 242 242 function user_can_edit_post($user_id, $post_id, $blog_id = 1) { 243 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );243 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 244 244 245 245 $author_data = get_userdata($user_id); … … 269 269 */ 270 270 function user_can_delete_post($user_id, $post_id, $blog_id = 1) { 271 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );271 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 272 272 273 273 // right now if one can edit, one can delete … … 288 288 */ 289 289 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') { 290 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );290 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 291 291 292 292 $author_data = get_userdata($user_id); … … 307 307 */ 308 308 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { 309 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );309 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 310 310 311 311 $author_data = get_userdata($user_id); … … 326 326 */ 327 327 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { 328 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );328 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 329 329 330 330 // right now if one can edit a post, one can edit comments made on it … … 345 345 */ 346 346 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { 347 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );347 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 348 348 349 349 // right now if one can edit comments, one can delete comments … … 363 363 */ 364 364 function user_can_edit_user($user_id, $other_user) { 365 _deprecated_function( __FUNCTION__, '2.0 ', 'current_user_can()' );365 _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); 366 366 367 367 $user = get_userdata($user_id); … … 396 396 $show_description = true, $show_rating = false, 397 397 $limit = -1, $show_updated = 0) { 398 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );398 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 399 399 400 400 $cat_id = -1; … … 418 418 */ 419 419 function wp_get_linksbyname($category, $args = '') { 420 _deprecated_function(__FUNCTION__, '2.1 ', 'wp_list_bookmarks()');420 _deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()'); 421 421 422 422 $defaults = array( … … 456 456 */ 457 457 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) { 458 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );458 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 459 459 460 460 $cat_id = -1; … … 507 507 */ 508 508 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) { 509 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );509 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 510 510 511 511 $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ; … … 540 540 function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ", 541 541 $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 542 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );542 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 543 543 544 544 get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); … … 567 567 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true, 568 568 $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 569 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );569 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 570 570 571 571 get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); … … 582 582 */ 583 583 function get_autotoggle($id = 0) { 584 _deprecated_function( __FUNCTION__, '2.1 ' );584 _deprecated_function( __FUNCTION__, '2.1.0' ); 585 585 return 0; 586 586 } … … 616 616 $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, 617 617 $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { 618 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_list_categories()' );618 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' ); 619 619 620 620 $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', … … 634 634 */ 635 635 function wp_list_cats($args = '') { 636 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_list_categories()' );636 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' ); 637 637 638 638 $r = wp_parse_args( $args ); … … 678 678 $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, 679 679 $selected = 0, $exclude = 0) { 680 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_dropdown_categories()' );680 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_dropdown_categories()' ); 681 681 682 682 $show_option_all = ''; … … 710 710 */ 711 711 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { 712 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_list_authors()' );712 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_authors()' ); 713 713 714 714 $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image'); … … 728 728 */ 729 729 function wp_get_post_cats($blogid = '1', $post_ID = 0) { 730 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_get_post_categories()' );730 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_post_categories()' ); 731 731 return wp_get_post_categories($post_ID); 732 732 } … … 746 746 */ 747 747 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { 748 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_set_post_categories()' );748 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' ); 749 749 return wp_set_post_categories($post_ID, $post_categories); 750 750 } … … 766 766 */ 767 767 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { 768 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_get_archives()' );768 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' ); 769 769 $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); 770 770 return wp_get_archives($args); … … 784 784 */ 785 785 function get_author_link($echo, $author_id, $author_nicename = '') { 786 _deprecated_function( __FUNCTION__, '2.1 ', 'get_author_posts_url()' );786 _deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' ); 787 787 788 788 $link = get_author_posts_url($author_id, $author_nicename); … … 811 811 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', 812 812 $pagelink='%', $more_file='') { 813 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_link_pages()' );813 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_link_pages()' ); 814 814 815 815 $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); … … 828 828 */ 829 829 function get_settings($option) { 830 _deprecated_function( __FUNCTION__, '2.1 ', 'get_option()' );830 _deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' ); 831 831 832 832 return get_option($option); … … 841 841 */ 842 842 function permalink_link() { 843 _deprecated_function( __FUNCTION__, '1.2 ', 'the_permalink()' );843 _deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' ); 844 844 the_permalink(); 845 845 } … … 855 855 */ 856 856 function permalink_single_rss($deprecated = '') { 857 _deprecated_function( __FUNCTION__, '2.3 ', 'the_permalink_rss()' );857 _deprecated_function( __FUNCTION__, '2.3.0', 'the_permalink_rss()' ); 858 858 the_permalink_rss(); 859 859 } … … 870 870 */ 871 871 function wp_get_links($args = '') { 872 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_list_bookmarks()' );872 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' ); 873 873 874 874 if ( strpos( $args, '=' ) === false ) { … … 924 924 function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name', 925 925 $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) { 926 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmarks()' );926 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 927 927 928 928 $order = 'ASC'; … … 1016 1016 */ 1017 1017 function get_links_list($order = 'name') { 1018 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_list_bookmarks()' );1018 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' ); 1019 1019 1020 1020 $order = strtolower($order); … … 1061 1061 */ 1062 1062 function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { 1063 _deprecated_function( __FUNCTION__, '2.1 ' );1063 _deprecated_function( __FUNCTION__, '2.1.0' ); 1064 1064 } 1065 1065 … … 1075 1075 */ 1076 1076 function get_linkrating( $link ) { 1077 _deprecated_function( __FUNCTION__, '2.1 ', 'sanitize_bookmark_field()' );1077 _deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' ); 1078 1078 return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); 1079 1079 } … … 1090 1090 */ 1091 1091 function get_linkcatname($id = 0) { 1092 _deprecated_function( __FUNCTION__, '2.1 ', 'get_category()' );1092 _deprecated_function( __FUNCTION__, '2.1.0', 'get_category()' ); 1093 1093 1094 1094 $id = (int) $id; … … 1118 1118 */ 1119 1119 function comments_rss_link($link_text = 'Comments RSS') { 1120 _deprecated_function( __FUNCTION__, '2.5 ', 'post_comments_feed_link()' );1120 _deprecated_function( __FUNCTION__, '2.5.0', 'post_comments_feed_link()' ); 1121 1121 post_comments_feed_link($link_text); 1122 1122 } … … 1134 1134 */ 1135 1135 function get_category_rss_link($echo = false, $cat_ID = 1) { 1136 _deprecated_function( __FUNCTION__, '2.5 ', 'get_category_feed_link()' );1136 _deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' ); 1137 1137 1138 1138 $link = get_category_feed_link($cat_ID, 'rss2'); … … 1155 1155 */ 1156 1156 function get_author_rss_link($echo = false, $author_id = 1) { 1157 _deprecated_function( __FUNCTION__, '2.5 ', 'get_author_feed_link()' );1157 _deprecated_function( __FUNCTION__, '2.5.0', 'get_author_feed_link()' ); 1158 1158 1159 1159 $link = get_author_feed_link($author_id); … … 1173 1173 */ 1174 1174 function comments_rss() { 1175 _deprecated_function( __FUNCTION__, '2.2 ', 'get_post_comments_feed_link()' );1175 _deprecated_function( __FUNCTION__, '2.2.0', 'get_post_comments_feed_link()' ); 1176 1176 return esc_url( get_post_comments_feed_link() ); 1177 1177 } … … 1190 1190 */ 1191 1191 function create_user($username, $password, $email) { 1192 _deprecated_function( __FUNCTION__, '2.0 ', 'wp_create_user()' );1192 _deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' ); 1193 1193 return wp_create_user($username, $password, $email); 1194 1194 } … … 1200 1200 */ 1201 1201 function gzip_compression() { 1202 _deprecated_function( __FUNCTION__, '2.5 ' );1202 _deprecated_function( __FUNCTION__, '2.5.0' ); 1203 1203 return false; 1204 1204 } … … 1217 1217 */ 1218 1218 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { 1219 _deprecated_function( __FUNCTION__, '2.7 ', 'get_comment()' );1219 _deprecated_function( __FUNCTION__, '2.7.0', 'get_comment()' ); 1220 1220 return get_comment($comment_ID, ARRAY_A); 1221 1221 } … … 1232 1232 */ 1233 1233 function get_catname( $cat_ID ) { 1234 _deprecated_function( __FUNCTION__, '2.8 ', 'get_cat_name()' );1234 _deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' ); 1235 1235 return get_cat_name( $cat_ID ); 1236 1236 } … … 1250 1250 */ 1251 1251 function get_category_children( $id, $before = '/', $after = '', $visited = array() ) { 1252 _deprecated_function( __FUNCTION__, '2.8 ', 'get_term_children()' );1252 _deprecated_function( __FUNCTION__, '2.8.0', 'get_term_children()' ); 1253 1253 if ( 0 == $id ) 1254 1254 return ''; … … 1285 1285 */ 1286 1286 function get_all_category_ids() { 1287 _deprecated_function( __FUNCTION__, '4.0 ', 'get_terms()' );1287 _deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' ); 1288 1288 1289 1289 if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { … … 1305 1305 */ 1306 1306 function get_the_author_description() { 1307 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'description\')' );1307 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'description\')' ); 1308 1308 return get_the_author_meta('description'); 1309 1309 } … … 1317 1317 */ 1318 1318 function the_author_description() { 1319 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'description\')' );1319 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'description\')' ); 1320 1320 the_author_meta('description'); 1321 1321 } … … 1331 1331 */ 1332 1332 function get_the_author_login() { 1333 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'login\')' );1333 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'login\')' ); 1334 1334 return get_the_author_meta('login'); 1335 1335 } … … 1343 1343 */ 1344 1344 function the_author_login() { 1345 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'login\')' );1345 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'login\')' ); 1346 1346 the_author_meta('login'); 1347 1347 } … … 1357 1357 */ 1358 1358 function get_the_author_firstname() { 1359 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'first_name\')' );1359 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'first_name\')' ); 1360 1360 return get_the_author_meta('first_name'); 1361 1361 } … … 1369 1369 */ 1370 1370 function the_author_firstname() { 1371 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'first_name\')' );1371 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'first_name\')' ); 1372 1372 the_author_meta('first_name'); 1373 1373 } … … 1383 1383 */ 1384 1384 function get_the_author_lastname() { 1385 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'last_name\')' );1385 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'last_name\')' ); 1386 1386 return get_the_author_meta('last_name'); 1387 1387 } … … 1395 1395 */ 1396 1396 function the_author_lastname() { 1397 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'last_name\')' );1397 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'last_name\')' ); 1398 1398 the_author_meta('last_name'); 1399 1399 } … … 1409 1409 */ 1410 1410 function get_the_author_nickname() { 1411 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'nickname\')' );1411 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'nickname\')' ); 1412 1412 return get_the_author_meta('nickname'); 1413 1413 } … … 1421 1421 */ 1422 1422 function the_author_nickname() { 1423 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'nickname\')' );1423 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'nickname\')' ); 1424 1424 the_author_meta('nickname'); 1425 1425 } … … 1435 1435 */ 1436 1436 function get_the_author_email() { 1437 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'email\')' );1437 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'email\')' ); 1438 1438 return get_the_author_meta('email'); 1439 1439 } … … 1447 1447 */ 1448 1448 function the_author_email() { 1449 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'email\')' );1449 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'email\')' ); 1450 1450 the_author_meta('email'); 1451 1451 } … … 1461 1461 */ 1462 1462 function get_the_author_icq() { 1463 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'icq\')' );1463 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'icq\')' ); 1464 1464 return get_the_author_meta('icq'); 1465 1465 } … … 1473 1473 */ 1474 1474 function the_author_icq() { 1475 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'icq\')' );1475 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'icq\')' ); 1476 1476 the_author_meta('icq'); 1477 1477 } … … 1487 1487 */ 1488 1488 function get_the_author_yim() { 1489 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'yim\')' );1489 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'yim\')' ); 1490 1490 return get_the_author_meta('yim'); 1491 1491 } … … 1499 1499 */ 1500 1500 function the_author_yim() { 1501 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'yim\')' );1501 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'yim\')' ); 1502 1502 the_author_meta('yim'); 1503 1503 } … … 1513 1513 */ 1514 1514 function get_the_author_msn() { 1515 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'msn\')' );1515 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'msn\')' ); 1516 1516 return get_the_author_meta('msn'); 1517 1517 } … … 1525 1525 */ 1526 1526 function the_author_msn() { 1527 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'msn\')' );1527 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'msn\')' ); 1528 1528 the_author_meta('msn'); 1529 1529 } … … 1539 1539 */ 1540 1540 function get_the_author_aim() { 1541 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'aim\')' );1541 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'aim\')' ); 1542 1542 return get_the_author_meta('aim'); 1543 1543 } … … 1551 1551 */ 1552 1552 function the_author_aim() { 1553 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'aim\')' );1553 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'aim\')' ); 1554 1554 the_author_meta('aim'); 1555 1555 } … … 1566 1566 */ 1567 1567 function get_author_name( $auth_id = false ) { 1568 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'display_name\')' );1568 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')' ); 1569 1569 return get_the_author_meta('display_name', $auth_id); 1570 1570 } … … 1580 1580 */ 1581 1581 function get_the_author_url() { 1582 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'url\')' );1582 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'url\')' ); 1583 1583 return get_the_author_meta('url'); 1584 1584 } … … 1592 1592 */ 1593 1593 function the_author_url() { 1594 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'url\')' );1594 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'url\')' ); 1595 1595 the_author_meta('url'); 1596 1596 } … … 1606 1606 */ 1607 1607 function get_the_author_ID() { 1608 _deprecated_function( __FUNCTION__, '2.8 ', 'get_the_author_meta(\'ID\')' );1608 _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' ); 1609 1609 return get_the_author_meta('ID'); 1610 1610 } … … 1618 1618 */ 1619 1619 function the_author_ID() { 1620 _deprecated_function( __FUNCTION__, '2.8 ', 'the_author_meta(\'ID\')' );1620 _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'ID\')' ); 1621 1621 the_author_meta('ID'); 1622 1622 } … … 1651 1651 */ 1652 1652 function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { 1653 _deprecated_function( __FUNCTION__, '2.9 ', 'the_content_feed' );1653 _deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed' ); 1654 1654 $content = get_the_content($more_link_text, $stripteaser); 1655 1655 $content = apply_filters('the_content_rss', $content); … … 1697 1697 */ 1698 1698 function make_url_footnote( $content ) { 1699 _deprecated_function( __FUNCTION__, '2.9 ', '' );1699 _deprecated_function( __FUNCTION__, '2.9.0', '' ); 1700 1700 preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches ); 1701 1701 $links_summary = "\n"; … … 1736 1736 */ 1737 1737 function _c( $text, $domain = 'default' ) { 1738 _deprecated_function( __FUNCTION__, '2.9 ', '_x()' );1738 _deprecated_function( __FUNCTION__, '2.9.0', '_x()' ); 1739 1739 return before_last_bar( translate( $text, $domain ) ); 1740 1740 } … … 1753 1753 */ 1754 1754 function translate_with_context( $text, $domain = 'default' ) { 1755 _deprecated_function( __FUNCTION__, '2.9 ', '_x()' );1755 _deprecated_function( __FUNCTION__, '2.9.0', '_x()' ); 1756 1756 return before_last_bar( translate( $text, $domain ) ); 1757 1757 } … … 1774 1774 */ 1775 1775 function _nc( $single, $plural, $number, $domain = 'default' ) { 1776 _deprecated_function( __FUNCTION__, '2.9 ', '_nx()' );1776 _deprecated_function( __FUNCTION__, '2.9.0', '_nx()' ); 1777 1777 return before_last_bar( _n( $single, $plural, $number, $domain ) ); 1778 1778 } … … 1786 1786 */ 1787 1787 function __ngettext() { 1788 _deprecated_function( __FUNCTION__, '2.8 ', '_n()' );1788 _deprecated_function( __FUNCTION__, '2.8.0', '_n()' ); 1789 1789 $args = func_get_args(); 1790 1790 return call_user_func_array('_n', $args); … … 1799 1799 */ 1800 1800 function __ngettext_noop() { 1801 _deprecated_function( __FUNCTION__, '2.8 ', '_n_noop()' );1801 _deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' ); 1802 1802 $args = func_get_args(); 1803 1803 return call_user_func_array('_n_noop', $args); … … 1815 1815 */ 1816 1816 function get_alloptions() { 1817 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_load_alloptions()' );1817 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_load_alloptions()' ); 1818 1818 return wp_load_alloptions(); 1819 1819 } … … 1833 1833 */ 1834 1834 function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) { 1835 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_get_attachment_link()' );1835 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_link()' ); 1836 1836 $id = (int) $id; 1837 1837 $_post = get_post($id); … … 1861 1861 */ 1862 1862 function get_attachment_icon_src( $id = 0, $fullsize = false ) { 1863 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_get_attachment_image_src()' );1863 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image_src()' ); 1864 1864 $id = (int) $id; 1865 1865 if ( !$post = get_post($id) ) … … 1903 1903 */ 1904 1904 function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { 1905 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_get_attachment_image()' );1905 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' ); 1906 1906 $id = (int) $id; 1907 1907 if ( !$post = get_post($id) ) … … 1959 1959 */ 1960 1960 function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { 1961 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_get_attachment_image()' );1961 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' ); 1962 1962 $id = (int) $id; 1963 1963 if ( !$post = get_post($id) ) … … 1987 1987 */ 1988 1988 function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) { 1989 _deprecated_function( __FUNCTION__, '2.1 ', 'get_bookmark()' );1989 _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' ); 1990 1990 return get_bookmark($bookmark_id, $output, $filter); 1991 1991 } … … 2003 2003 */ 2004 2004 function sanitize_url( $url, $protocols = null ) { 2005 _deprecated_function( __FUNCTION__, '2.8 ', 'esc_url_raw()' );2005 _deprecated_function( __FUNCTION__, '2.8.0', 'esc_url_raw()' ); 2006 2006 return esc_url_raw( $url, $protocols ); 2007 2007 } … … 2025 2025 function clean_url( $url, $protocols = null, $context = 'display' ) { 2026 2026 if ( $context == 'db' ) 2027 _deprecated_function( 'clean_url( $context = \'db\' )', '3.0 ', 'esc_url_raw()' );2027 _deprecated_function( 'clean_url( $context = \'db\' )', '3.0.0', 'esc_url_raw()' ); 2028 2028 else 2029 _deprecated_function( __FUNCTION__, '3.0 ', 'esc_url()' );2029 _deprecated_function( __FUNCTION__, '3.0.0', 'esc_url()' ); 2030 2030 return esc_url( $url, $protocols, $context ); 2031 2031 } … … 2044 2044 */ 2045 2045 function js_escape( $text ) { 2046 _deprecated_function( __FUNCTION__, '2.8 ', 'esc_js()' );2046 _deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' ); 2047 2047 return esc_js( $text ); 2048 2048 } … … 2061 2061 */ 2062 2062 function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { 2063 _deprecated_function( __FUNCTION__, '2.8 ', 'esc_html()' );2063 _deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' ); 2064 2064 if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments. 2065 2065 $args = func_get_args(); … … 2081 2081 */ 2082 2082 function attribute_escape( $text ) { 2083 _deprecated_function( __FUNCTION__, '2.8 ', 'esc_attr()' );2083 _deprecated_function( __FUNCTION__, '2.8.0', 'esc_attr()' ); 2084 2084 return esc_attr( $text ); 2085 2085 } … … 2105 2105 */ 2106 2106 function register_sidebar_widget($name, $output_callback, $classname = '') { 2107 _deprecated_function( __FUNCTION__, '2.8 ', 'wp_register_sidebar_widget()' );2107 _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_sidebar_widget()' ); 2108 2108 // Compat 2109 2109 if ( is_array($name) ) { … … 2136 2136 */ 2137 2137 function unregister_sidebar_widget($id) { 2138 _deprecated_function( __FUNCTION__, '2.8 ', 'wp_unregister_sidebar_widget()' );2138 _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_sidebar_widget()' ); 2139 2139 return wp_unregister_sidebar_widget($id); 2140 2140 } … … 2160 2160 */ 2161 2161 function register_widget_control($name, $control_callback, $width = '', $height = '') { 2162 _deprecated_function( __FUNCTION__, '2.8 ', 'wp_register_widget_control()' );2162 _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_widget_control()' ); 2163 2163 // Compat 2164 2164 if ( is_array($name) ) { … … 2193 2193 */ 2194 2194 function unregister_widget_control($id) { 2195 _deprecated_function( __FUNCTION__, '2.8 ', 'wp_unregister_widget_control()' );2195 _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' ); 2196 2196 return wp_unregister_widget_control($id); 2197 2197 } … … 2210 2210 */ 2211 2211 function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) { 2212 _deprecated_function( __FUNCTION__, '3.0 ', 'delete_user_meta()' );2212 _deprecated_function( __FUNCTION__, '3.0.0', 'delete_user_meta()' ); 2213 2213 global $wpdb; 2214 2214 if ( !is_numeric( $user_id ) ) … … 2256 2256 */ 2257 2257 function get_usermeta( $user_id, $meta_key = '' ) { 2258 _deprecated_function( __FUNCTION__, '3.0 ', 'get_user_meta()' );2258 _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_meta()' ); 2259 2259 global $wpdb; 2260 2260 $user_id = (int) $user_id; … … 2309 2309 */ 2310 2310 function update_usermeta( $user_id, $meta_key, $meta_value ) { 2311 _deprecated_function( __FUNCTION__, '3.0 ', 'update_user_meta()' );2311 _deprecated_function( __FUNCTION__, '3.0.0', 'update_user_meta()' ); 2312 2312 global $wpdb; 2313 2313 if ( !is_numeric( $user_id ) ) … … 2364 2364 */ 2365 2365 function get_users_of_blog( $id = '' ) { 2366 _deprecated_function( __FUNCTION__, '3.1 ', 'get_users()' );2366 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); 2367 2367 2368 2368 global $wpdb, $blog_id; … … 2384 2384 */ 2385 2385 function automatic_feed_links( $add = true ) { 2386 _deprecated_function( __FUNCTION__, '3.0 ', "add_theme_support( 'automatic-feed-links' )" );2386 _deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" ); 2387 2387 2388 2388 if ( $add ) … … 2404 2404 */ 2405 2405 function get_profile( $field, $user = false ) { 2406 _deprecated_function( __FUNCTION__, '3.0 ', 'get_the_author_meta()' );2406 _deprecated_function( __FUNCTION__, '3.0.0', 'get_the_author_meta()' ); 2407 2407 if ( $user ) { 2408 2408 $user = get_user_by( 'login', $user ); … … 2423 2423 */ 2424 2424 function get_usernumposts( $userid ) { 2425 _deprecated_function( __FUNCTION__, '3.0 ', 'count_user_posts()' );2425 _deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' ); 2426 2426 return count_user_posts( $userid ); 2427 2427 } … … 2456 2456 */ 2457 2457 function funky_javascript_fix($text) { 2458 _deprecated_function( __FUNCTION__, '3.0 ' );2458 _deprecated_function( __FUNCTION__, '3.0.0' ); 2459 2459 // Fixes for browsers' JavaScript bugs. 2460 2460 global $is_macIE, $is_winIE; … … 2479 2479 */ 2480 2480 function is_taxonomy( $taxonomy ) { 2481 _deprecated_function( __FUNCTION__, '3.0 ', 'taxonomy_exists()' );2481 _deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' ); 2482 2482 return taxonomy_exists( $taxonomy ); 2483 2483 } … … 2496 2496 */ 2497 2497 function is_term( $term, $taxonomy = '', $parent = 0 ) { 2498 _deprecated_function( __FUNCTION__, '3.0 ', 'term_exists()' );2498 _deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' ); 2499 2499 return term_exists( $term, $taxonomy, $parent ); 2500 2500 } … … 2513 2513 */ 2514 2514 function is_plugin_page() { 2515 _deprecated_function( __FUNCTION__, '3.1 ' );2515 _deprecated_function( __FUNCTION__, '3.1.0' ); 2516 2516 2517 2517 global $plugin_page; … … 2536 2536 */ 2537 2537 function update_category_cache() { 2538 _deprecated_function( __FUNCTION__, '3.1 ' );2538 _deprecated_function( __FUNCTION__, '3.1.0' ); 2539 2539 2540 2540 return true; … … 2550 2550 */ 2551 2551 function wp_timezone_supported() { 2552 _deprecated_function( __FUNCTION__, '3.2 ' );2552 _deprecated_function( __FUNCTION__, '3.2.0' ); 2553 2553 2554 2554 return true; … … 2570 2570 */ 2571 2571 function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) { 2572 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_editor()' );2572 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 2573 2573 2574 2574 wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) ); … … 2585 2585 */ 2586 2586 function get_user_metavalues($ids) { 2587 _deprecated_function( __FUNCTION__, '3.3 ' );2587 _deprecated_function( __FUNCTION__, '3.3.0' ); 2588 2588 2589 2589 $objects = array(); … … 2619 2619 */ 2620 2620 function sanitize_user_object($user, $context = 'display') { 2621 _deprecated_function( __FUNCTION__, '3.3 ' );2621 _deprecated_function( __FUNCTION__, '3.3.0' ); 2622 2622 2623 2623 if ( is_object($user) ) { … … 2658 2658 */ 2659 2659 function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { 2660 _deprecated_function( __FUNCTION__, '3.3 ' );2660 _deprecated_function( __FUNCTION__, '3.3.0' ); 2661 2661 2662 2662 $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); … … 2696 2696 */ 2697 2697 function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') { 2698 _deprecated_function( __FUNCTION__, '3.3 ' );2698 _deprecated_function( __FUNCTION__, '3.3.0' ); 2699 2699 2700 2700 echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true); … … 2710 2710 */ 2711 2711 function get_index_rel_link() { 2712 _deprecated_function( __FUNCTION__, '3.3 ' );2712 _deprecated_function( __FUNCTION__, '3.3.0' ); 2713 2713 2714 2714 $link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( user_trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n"; … … 2723 2723 */ 2724 2724 function index_rel_link() { 2725 _deprecated_function( __FUNCTION__, '3.3 ' );2725 _deprecated_function( __FUNCTION__, '3.3.0' ); 2726 2726 2727 2727 echo get_index_rel_link(); … … 2738 2738 */ 2739 2739 function get_parent_post_rel_link( $title = '%title' ) { 2740 _deprecated_function( __FUNCTION__, '3.3 ' );2740 _deprecated_function( __FUNCTION__, '3.3.0' ); 2741 2741 2742 2742 if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) ) … … 2768 2768 */ 2769 2769 function parent_post_rel_link( $title = '%title' ) { 2770 _deprecated_function( __FUNCTION__, '3.3 ' );2770 _deprecated_function( __FUNCTION__, '3.3.0' ); 2771 2771 2772 2772 echo get_parent_post_rel_link($title); … … 2782 2782 */ 2783 2783 function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) { 2784 _deprecated_function( __FUNCTION__, '3.3 ' );2784 _deprecated_function( __FUNCTION__, '3.3.0' ); 2785 2785 2786 2786 $user_id = get_current_user_id(); … … 2807 2807 */ 2808 2808 function is_blog_user( $blog_id = 0 ) { 2809 _deprecated_function( __FUNCTION__, '3.3 ', 'is_user_member_of_blog()' );2809 _deprecated_function( __FUNCTION__, '3.3.0', 'is_user_member_of_blog()' ); 2810 2810 2811 2811 return is_user_member_of_blog( get_current_user_id(), $blog_id ); … … 2877 2877 */ 2878 2878 function get_themes() { 2879 _deprecated_function( __FUNCTION__, '3.4 ', 'wp_get_themes()' );2879 _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_themes()' ); 2880 2880 2881 2881 global $wp_themes; … … 2908 2908 */ 2909 2909 function get_theme( $theme ) { 2910 _deprecated_function( __FUNCTION__, '3.4 ', 'wp_get_theme( $stylesheet )' );2910 _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' ); 2911 2911 2912 2912 $themes = get_themes(); … … 2926 2926 */ 2927 2927 function get_current_theme() { 2928 _deprecated_function( __FUNCTION__, '3.4 ', 'wp_get_theme()' );2928 _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); 2929 2929 2930 2930 if ( $theme = get_option( 'current_theme' ) ) … … 2947 2947 */ 2948 2948 function clean_pre($matches) { 2949 _deprecated_function( __FUNCTION__, '3.4 ' );2949 _deprecated_function( __FUNCTION__, '3.4.0' ); 2950 2950 2951 2951 if ( is_array($matches) ) … … 2974 2974 */ 2975 2975 function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) { 2976 _deprecated_function( __FUNCTION__, '3.4 ', 'add_theme_support( \'custom-header\', $args )' );2976 _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-header\', $args )' ); 2977 2977 $args = array( 2978 2978 'wp-head-callback' => $wp_head_callback, … … 2994 2994 */ 2995 2995 function remove_custom_image_header() { 2996 _deprecated_function( __FUNCTION__, '3.4 ', 'remove_theme_support( \'custom-header\' )' );2996 _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-header\' )' ); 2997 2997 return remove_theme_support( 'custom-header' ); 2998 2998 } … … 3010 3010 */ 3011 3011 function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) { 3012 _deprecated_function( __FUNCTION__, '3.4 ', 'add_theme_support( \'custom-background\', $args )' );3012 _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-background\', $args )' ); 3013 3013 $args = array(); 3014 3014 if ( $wp_head_callback ) … … 3031 3031 */ 3032 3032 function remove_custom_background() { 3033 _deprecated_function( __FUNCTION__, '3.4 ', 'remove_theme_support( \'custom-background\' )' );3033 _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-background\' )' ); 3034 3034 return remove_theme_support( 'custom-background' ); 3035 3035 } … … 3046 3046 */ 3047 3047 function get_theme_data( $theme_file ) { 3048 _deprecated_function( __FUNCTION__, '3.4 ', 'wp_get_theme()' );3048 _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); 3049 3049 $theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) ); 3050 3050 … … 3083 3083 */ 3084 3084 function update_page_cache( &$pages ) { 3085 _deprecated_function( __FUNCTION__, '3.4 ', 'update_post_cache()' );3085 _deprecated_function( __FUNCTION__, '3.4.0', 'update_post_cache()' ); 3086 3086 3087 3087 update_post_cache( $pages ); … … 3101 3101 */ 3102 3102 function clean_page_cache( $id ) { 3103 _deprecated_function( __FUNCTION__, '3.4 ', 'clean_post_cache()' );3103 _deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' ); 3104 3104 3105 3105 clean_post_cache( $id ); … … 3133 3133 */ 3134 3134 function sticky_class( $post_id = null ) { 3135 _deprecated_function( __FUNCTION__, '3.5 ', 'post_class()' );3135 _deprecated_function( __FUNCTION__, '3.5.0', 'post_class()' ); 3136 3136 if ( is_sticky( $post_id ) ) 3137 3137 echo ' sticky'; … … 3151 3151 */ 3152 3152 function _get_post_ancestors( &$post ) { 3153 _deprecated_function( __FUNCTION__, '3.5 ' );3153 _deprecated_function( __FUNCTION__, '3.5.0' ); 3154 3154 } 3155 3155 … … 3165 3165 */ 3166 3166 function wp_load_image( $file ) { 3167 _deprecated_function( __FUNCTION__, '3.5 ', 'wp_get_image_editor()' );3167 _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' ); 3168 3168 3169 3169 if ( is_numeric( $file ) ) … … 3215 3215 */ 3216 3216 function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) { 3217 _deprecated_function( __FUNCTION__, '3.5 ', 'wp_get_image_editor()' );3217 _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' ); 3218 3218 3219 3219 $editor = wp_get_image_editor( $file ); … … 3250 3250 */ 3251 3251 function wp_get_single_post( $postid = 0, $mode = OBJECT ) { 3252 _deprecated_function( __FUNCTION__, '3.5 ', 'get_post()' );3252 _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); 3253 3253 return get_post( $postid, $mode ); 3254 3254 } … … 3266 3266 */ 3267 3267 function user_pass_ok($user_login, $user_pass) { 3268 _deprecated_function( __FUNCTION__, '3.5 ', 'wp_authenticate()' );3268 _deprecated_function( __FUNCTION__, '3.5.0', 'wp_authenticate()' ); 3269 3269 $user = wp_authenticate( $user_login, $user_pass ); 3270 3270 if ( is_wp_error( $user ) ) … … 3293 3293 */ 3294 3294 function gd_edit_image_support($mime_type) { 3295 _deprecated_function( __FUNCTION__, '3.5 ', 'wp_image_editor_supports()' );3295 _deprecated_function( __FUNCTION__, '3.5.0', 'wp_image_editor_supports()' ); 3296 3296 3297 3297 if ( function_exists('imagetypes') ) { … … 3328 3328 */ 3329 3329 function wp_convert_bytes_to_hr( $bytes ) { 3330 _deprecated_function( __FUNCTION__, '3.6 ', 'size_format()' );3330 _deprecated_function( __FUNCTION__, '3.6.0', 'size_format()' ); 3331 3331 3332 3332 $units = array( 0 => 'B', 1 => 'KB', 2 => 'MB', 3 => 'GB', 4 => 'TB' ); … … 3356 3356 */ 3357 3357 function _search_terms_tidy( $t ) { 3358 _deprecated_function( __FUNCTION__, '3.7 ' );3358 _deprecated_function( __FUNCTION__, '3.7.0' ); 3359 3359 return trim( $t, "\"'\n\r " ); 3360 3360 } … … 3373 3373 function rich_edit_exists() { 3374 3374 global $wp_rich_edit_exists; 3375 _deprecated_function( __FUNCTION__, '3.9 ' );3375 _deprecated_function( __FUNCTION__, '3.9.0' ); 3376 3376 3377 3377 if ( ! isset( $wp_rich_edit_exists ) ) … … 3407 3407 */ 3408 3408 function format_to_post( $content ) { 3409 _deprecated_function( __FUNCTION__, '3.9 ' );3409 _deprecated_function( __FUNCTION__, '3.9.0' ); 3410 3410 return $content; 3411 3411 } … … 3422 3422 */ 3423 3423 function like_escape($text) { 3424 _deprecated_function( __FUNCTION__, '4.0 ', 'wpdb::esc_like()' );3424 _deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' ); 3425 3425 return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); 3426 3426 } … … 3439 3439 */ 3440 3440 function url_is_accessable_via_ssl( $url ) { 3441 _deprecated_function( __FUNCTION__, '4.0 ' );3441 _deprecated_function( __FUNCTION__, '4.0.0' ); 3442 3442 3443 3443 $response = wp_remote_get( set_url_scheme( $url, 'https' ) ); … … 3463 3463 */ 3464 3464 function preview_theme() { 3465 _deprecated_function( __FUNCTION__, '4.3 ' );3465 _deprecated_function( __FUNCTION__, '4.3.0' ); 3466 3466 } 3467 3467 … … 3476 3476 */ 3477 3477 function _preview_theme_template_filter() { 3478 _deprecated_function( __FUNCTION__, '4.3 ' );3478 _deprecated_function( __FUNCTION__, '4.3.0' ); 3479 3479 return ''; 3480 3480 } … … 3490 3490 */ 3491 3491 function _preview_theme_stylesheet_filter() { 3492 _deprecated_function( __FUNCTION__, '4.3 ' );3492 _deprecated_function( __FUNCTION__, '4.3.0' ); 3493 3493 return ''; 3494 3494 } … … 3505 3505 */ 3506 3506 function preview_theme_ob_filter( $content ) { 3507 _deprecated_function( __FUNCTION__, '4.3 ' );3507 _deprecated_function( __FUNCTION__, '4.3.0' ); 3508 3508 return $content; 3509 3509 } … … 3522 3522 */ 3523 3523 function preview_theme_ob_filter_callback( $matches ) { 3524 _deprecated_function( __FUNCTION__, '4.3 ' );3524 _deprecated_function( __FUNCTION__, '4.3.0' ); 3525 3525 return ''; 3526 3526 } … … 3539 3539 */ 3540 3540 function wp_richedit_pre($text) { 3541 _deprecated_function( __FUNCTION__, '4.3 ', 'format_for_editor()' );3541 _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' ); 3542 3542 3543 3543 if ( empty( $text ) ) { … … 3582 3582 */ 3583 3583 function wp_htmledit_pre($output) { 3584 _deprecated_function( __FUNCTION__, '4.3 ', 'format_for_editor()' );3584 _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' ); 3585 3585 3586 3586 if ( !empty($output) ) … … 3609 3609 */ 3610 3610 function post_permalink( $post_id = 0 ) { 3611 _deprecated_function( __FUNCTION__, '4.4 ', 'get_permalink()' );3611 _deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' ); 3612 3612 3613 3613 return get_permalink( $post_id ); … … 3631 3631 */ 3632 3632 function wp_get_http( $url, $file_path = false, $red = 1 ) { 3633 _deprecated_function( __FUNCTION__, '4.4 ', 'WP_Http' );3633 _deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' ); 3634 3634 3635 3635 @set_time_limit( 60 ); … … 3685 3685 */ 3686 3686 function force_ssl_login( $force = null ) { 3687 _deprecated_function( __FUNCTION__, '4.4 ', 'force_ssl_admin()' );3687 _deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' ); 3688 3688 return force_ssl_admin( $force ); 3689 3689 } … … 3698 3698 */ 3699 3699 function get_comments_popup_template() { 3700 _deprecated_function( __FUNCTION__, '4.5 ' );3700 _deprecated_function( __FUNCTION__, '4.5.0' ); 3701 3701 3702 3702 return ''; … … 3712 3712 */ 3713 3713 function is_comments_popup() { 3714 _deprecated_function( __FUNCTION__, '4.5 ' );3714 _deprecated_function( __FUNCTION__, '4.5.0' ); 3715 3715 3716 3716 return false; … … 3724 3724 */ 3725 3725 function comments_popup_script() { 3726 _deprecated_function( __FUNCTION__, '4.5 ' );3726 _deprecated_function( __FUNCTION__, '4.5.0' ); 3727 3727 } 3728 3728 … … 3737 3737 */ 3738 3738 function popuplinks( $text ) { 3739 _deprecated_function( __FUNCTION__, '4.5 ' );3739 _deprecated_function( __FUNCTION__, '4.5.0' ); 3740 3740 $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text); 3741 3741 return $text;
Note: See TracChangeset
for help on using the changeset viewer.