Ticket #36495: 36495.2.diff
File 36495.2.diff, 135.5 KB (added by , 7 years ago) |
---|
-
wp-admin/admin-functions.php
9 9 * @subpackage Administration 10 10 */ 11 11 12 _deprecated_file( basename(__FILE__), '2.5 ', 'wp-admin/includes/admin.php' );12 _deprecated_file( basename(__FILE__), '2.5.0', 'wp-admin/includes/admin.php' ); 13 13 14 14 /** WordPress Administration API: Includes all Administration functions. */ 15 15 require_once(ABSPATH . 'wp-admin/includes/admin.php'); -
wp-admin/includes/class-wp-filesystem-base.php
138 138 * @return string The location of the remote path. 139 139 */ 140 140 public function find_base_dir( $base = '.', $echo = false ) { 141 _deprecated_function(__FUNCTION__, '2.7 ', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );141 _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 142 142 $this->verbose = $echo; 143 143 return $this->abspath(); 144 144 } … … 160 160 * @return string The location of the remote path. 161 161 */ 162 162 public function get_base_dir( $base = '.', $echo = false ) { 163 _deprecated_function(__FUNCTION__, '2.7 ', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );163 _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 164 164 $this->verbose = $echo; 165 165 return $this->abspath(); 166 166 } -
wp-admin/includes/deprecated.php
18 18 * @see wp_editor() 19 19 */ 20 20 function tinymce_include() { 21 _deprecated_function( __FUNCTION__, '2.1 ', 'wp_editor()' );21 _deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' ); 22 22 23 23 wp_tiny_mce(); 24 24 } … … 31 31 * 32 32 */ 33 33 function documentation_link() { 34 _deprecated_function( __FUNCTION__, '2.5 ' );34 _deprecated_function( __FUNCTION__, '2.5.0' ); 35 35 } 36 36 37 37 /** … … 48 48 * @return array Shrunk dimensions (width, height). 49 49 */ 50 50 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { 51 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_constrain_dimensions()' );51 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' ); 52 52 return wp_constrain_dimensions( $width, $height, $wmax, $hmax ); 53 53 } 54 54 … … 64 64 * @return array Shrunk dimensions (width, height). 65 65 */ 66 66 function get_udims( $width, $height ) { 67 _deprecated_function( __FUNCTION__, '3.5 ', 'wp_constrain_dimensions()' );67 _deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' ); 68 68 return wp_constrain_dimensions( $width, $height, 128, 96 ); 69 69 } 70 70 … … 80 80 * @param array $popular_ids Unused. 81 81 */ 82 82 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { 83 _deprecated_function( __FUNCTION__, '2.6 ', 'wp_category_checklist()' );83 _deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' ); 84 84 global $post_ID; 85 85 wp_category_checklist( $post_ID ); 86 86 } … … 95 95 * @param int $default Unused. 96 96 */ 97 97 function dropdown_link_categories( $default = 0 ) { 98 _deprecated_function( __FUNCTION__, '2.6 ', 'wp_link_category_checklist()' );98 _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' ); 99 99 global $link_id; 100 100 wp_link_category_checklist( $link_id ); 101 101 } … … 111 111 * @return string Full filesystem path to edit. 112 112 */ 113 113 function get_real_file_to_edit( $file ) { 114 _deprecated_function( __FUNCTION__, '2.9 ' );114 _deprecated_function( __FUNCTION__, '2.9.0' ); 115 115 116 116 return WP_CONTENT_DIR . $file; 117 117 } … … 131 131 * @return bool|null False if no categories were found. 132 132 */ 133 133 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 134 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_dropdown_categories()' );134 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); 135 135 if (!$categories ) 136 136 $categories = get_categories( array('hide_empty' => 0) ); 137 137 … … 165 165 * @param callable $sanitize_callback A callback function that sanitizes the option's value. 166 166 */ 167 167 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { 168 _deprecated_function( __FUNCTION__, '3.0 ', 'register_setting()' );168 _deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' ); 169 169 register_setting( $option_group, $option_name, $sanitize_callback ); 170 170 } 171 171 … … 181 181 * @param callable $sanitize_callback 182 182 */ 183 183 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { 184 _deprecated_function( __FUNCTION__, '3.0 ', 'unregister_setting()' );184 _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' ); 185 185 unregister_setting( $option_group, $option_name, $sanitize_callback ); 186 186 } 187 187 … … 194 194 * @param string $filename 195 195 **/ 196 196 function codepress_get_lang( $filename ) { 197 _deprecated_function( __FUNCTION__, '3.0 ' );197 _deprecated_function( __FUNCTION__, '3.0.0' ); 198 198 } 199 199 200 200 /** … … 204 204 * @deprecated 3.0.0 205 205 **/ 206 206 function codepress_footer_js() { 207 _deprecated_function( __FUNCTION__, '3.0 ' );207 _deprecated_function( __FUNCTION__, '3.0.0' ); 208 208 } 209 209 210 210 /** … … 214 214 * @deprecated 3.0.0 215 215 **/ 216 216 function use_codepress() { 217 _deprecated_function( __FUNCTION__, '3.0 ' );217 _deprecated_function( __FUNCTION__, '3.0.0' ); 218 218 } 219 219 220 220 /** … … 225 225 * @return array List of user IDs. 226 226 */ 227 227 function get_author_user_ids() { 228 _deprecated_function( __FUNCTION__, '3.1 ', 'get_users()' );228 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); 229 229 230 230 global $wpdb; 231 231 if ( !is_multisite() ) … … 245 245 * @return array|bool List of editable authors. False if no editable users. 246 246 */ 247 247 function get_editable_authors( $user_id ) { 248 _deprecated_function( __FUNCTION__, '3.1 ', 'get_users()' );248 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); 249 249 250 250 global $wpdb; 251 251 … … 271 271 * @return array Array of editable user IDs, empty array otherwise. 272 272 */ 273 273 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) { 274 _deprecated_function( __FUNCTION__, '3.1 ', 'get_users()' );274 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); 275 275 276 276 global $wpdb; 277 277 … … 304 304 * @deprecated 3.1.0 Use get_users() 305 305 */ 306 306 function get_nonauthor_user_ids() { 307 _deprecated_function( __FUNCTION__, '3.1 ', 'get_users()' );307 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); 308 308 309 309 global $wpdb; 310 310 … … 480 480 * @return WP_User_Search 481 481 */ 482 482 function __construct( $search_term = '', $page = '', $role = '' ) { 483 _deprecated_function( __FUNCTION__, '3.1 ', 'WP_User_Query' );483 _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' ); 484 484 485 485 $this->search_term = wp_unslash( $search_term ); 486 486 $this->raw_page = ( '' == $page ) ? false : (int) $page; … … 670 670 * @return array List of posts from others. 671 671 */ 672 672 function get_others_unpublished_posts( $user_id, $type = 'any' ) { 673 _deprecated_function( __FUNCTION__, '3.1 ' );673 _deprecated_function( __FUNCTION__, '3.1.0' ); 674 674 675 675 global $wpdb; 676 676 … … 703 703 * @return array List of drafts from other users. 704 704 */ 705 705 function get_others_drafts($user_id) { 706 _deprecated_function( __FUNCTION__, '3.1 ' );706 _deprecated_function( __FUNCTION__, '3.1.0' ); 707 707 708 708 return get_others_unpublished_posts($user_id, 'draft'); 709 709 } … … 718 718 * @return array List of posts with pending review post type from other users. 719 719 */ 720 720 function get_others_pending($user_id) { 721 _deprecated_function( __FUNCTION__, '3.1 ' );721 _deprecated_function( __FUNCTION__, '3.1.0' ); 722 722 723 723 return get_others_unpublished_posts($user_id, 'pending'); 724 724 } … … 731 731 * @see wp_dashboard_quick_press() 732 732 */ 733 733 function wp_dashboard_quick_press_output() { 734 _deprecated_function( __FUNCTION__, '3.2 ', 'wp_dashboard_quick_press()' );734 _deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' ); 735 735 wp_dashboard_quick_press(); 736 736 } 737 737 … … 745 745 * @staticvar int $num 746 746 */ 747 747 function wp_tiny_mce( $teeny = false, $settings = false ) { 748 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_editor()' );748 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 749 749 750 750 static $num = 1; 751 751 … … 771 771 * @see wp_editor() 772 772 */ 773 773 function wp_preload_dialogs() { 774 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_editor()' );774 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 775 775 } 776 776 777 777 /** … … 781 781 * @see wp_editor() 782 782 */ 783 783 function wp_print_editor_js() { 784 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_editor()' );784 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 785 785 } 786 786 787 787 /** … … 791 791 * @see wp_editor() 792 792 */ 793 793 function wp_quicktags() { 794 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_editor()' );794 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 795 795 } 796 796 797 797 /** … … 802 802 * @see WP_Screen::render_screen_layout() 803 803 */ 804 804 function screen_layout( $screen ) { 805 _deprecated_function( __FUNCTION__, '3.3 ', '$current_screen->render_screen_layout()' );805 _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' ); 806 806 807 807 $current_screen = get_current_screen(); 808 808 … … 822 822 * @see WP_Screen::render_per_page_options() 823 823 */ 824 824 function screen_options( $screen ) { 825 _deprecated_function( __FUNCTION__, '3.3 ', '$current_screen->render_per_page_options()' );825 _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' ); 826 826 827 827 $current_screen = get_current_screen(); 828 828 … … 854 854 * @see WP_Admin_Bar 855 855 */ 856 856 function favorite_actions() { 857 _deprecated_function( __FUNCTION__, '3.2 ', 'WP_Admin_Bar' );857 _deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' ); 858 858 } 859 859 860 860 /** … … 866 866 * @return null|string 867 867 */ 868 868 function media_upload_image() { 869 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_media_upload_handler()' );869 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); 870 870 return wp_media_upload_handler(); 871 871 } 872 872 … … 879 879 * @return null|string 880 880 */ 881 881 function media_upload_audio() { 882 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_media_upload_handler()' );882 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); 883 883 return wp_media_upload_handler(); 884 884 } 885 885 … … 892 892 * @return null|string 893 893 */ 894 894 function media_upload_video() { 895 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_media_upload_handler()' );895 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); 896 896 return wp_media_upload_handler(); 897 897 } 898 898 … … 905 905 * @return null|string 906 906 */ 907 907 function media_upload_file() { 908 _deprecated_function( __FUNCTION__, '3.3 ', 'wp_media_upload_handler()' );908 _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); 909 909 return wp_media_upload_handler(); 910 910 } 911 911 … … 918 918 * @return string 919 919 */ 920 920 function type_url_form_image() { 921 _deprecated_function( __FUNCTION__, '3.3 ', "wp_media_insert_url_form('image')" );921 _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" ); 922 922 return wp_media_insert_url_form( 'image' ); 923 923 } 924 924 … … 931 931 * @return string 932 932 */ 933 933 function type_url_form_audio() { 934 _deprecated_function( __FUNCTION__, '3.3 ', "wp_media_insert_url_form('audio')" );934 _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" ); 935 935 return wp_media_insert_url_form( 'audio' ); 936 936 } 937 937 … … 944 944 * @return string 945 945 */ 946 946 function type_url_form_video() { 947 _deprecated_function( __FUNCTION__, '3.3 ', "wp_media_insert_url_form('video')" );947 _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" ); 948 948 return wp_media_insert_url_form( 'video' ); 949 949 } 950 950 … … 957 957 * @return string 958 958 */ 959 959 function type_url_form_file() { 960 _deprecated_function( __FUNCTION__, '3.3 ', "wp_media_insert_url_form('file')" );960 _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" ); 961 961 return wp_media_insert_url_form( 'file' ); 962 962 } 963 963 … … 974 974 * @param string $help The content of an 'Overview' help tab. 975 975 */ 976 976 function add_contextual_help( $screen, $help ) { 977 _deprecated_function( __FUNCTION__, '3.3 ', 'get_current_screen()->add_help_tab()' );977 _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' ); 978 978 979 979 if ( is_string( $screen ) ) 980 980 $screen = convert_to_screen( $screen ); … … 992 992 * @return array $themes Array of allowed themes. 993 993 */ 994 994 function get_allowed_themes() { 995 _deprecated_function( __FUNCTION__, '3.4 ', "wp_get_themes( array( 'allowed' => true ) )" );995 _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" ); 996 996 997 997 $themes = wp_get_themes( array( 'allowed' => true ) ); 998 998 … … 1014 1014 * @return array 1015 1015 */ 1016 1016 function get_broken_themes() { 1017 _deprecated_function( __FUNCTION__, '3.4 ', "wp_get_themes( array( 'errors' => true )" );1017 _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" ); 1018 1018 1019 1019 $themes = wp_get_themes( array( 'errors' => true ) ); 1020 1020 $broken = array(); … … 1039 1039 * @return WP_Theme 1040 1040 */ 1041 1041 function current_theme_info() { 1042 _deprecated_function( __FUNCTION__, '3.4 ', 'wp_get_theme()' );1042 _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); 1043 1043 1044 1044 return wp_get_theme(); 1045 1045 } … … 1052 1052 * @deprecated 3.5.0 1053 1053 */ 1054 1054 function _insert_into_post_button( $type ) { 1055 _deprecated_function( __FUNCTION__, '3.5 ' );1055 _deprecated_function( __FUNCTION__, '3.5.0' ); 1056 1056 } 1057 1057 1058 1058 /** … … 1063 1063 * @deprecated 3.5.0 1064 1064 */ 1065 1065 function _media_button($title, $icon, $type, $id) { 1066 _deprecated_function( __FUNCTION__, '3.5 ' );1066 _deprecated_function( __FUNCTION__, '3.5.0' ); 1067 1067 } 1068 1068 1069 1069 /** … … 1077 1077 * @return object 1078 1078 */ 1079 1079 function get_post_to_edit( $id ) { 1080 _deprecated_function( __FUNCTION__, '3.5 ', 'get_post()' );1080 _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); 1081 1081 1082 1082 return get_post( $id, OBJECT, 'edit' ); 1083 1083 } … … 1092 1092 * @return WP_Post Post object containing all the default post data as attributes 1093 1093 */ 1094 1094 function get_default_page_to_edit() { 1095 _deprecated_function( __FUNCTION__, '3.5 ', "get_default_post_to_edit( 'page' )" );1095 _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" ); 1096 1096 1097 1097 $page = get_default_post_to_edit(); 1098 1098 $page->post_type = 'page'; … … 1112 1112 * @return string Thumbnail path on success, Error string on failure. 1113 1113 */ 1114 1114 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { 1115 _deprecated_function( __FUNCTION__, '3.5 ', 'image_resize()' );1115 _deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' ); 1116 1116 return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) ); 1117 1117 } 1118 1118 … … 1125 1125 * @deprecated 3.6.0 1126 1126 */ 1127 1127 function wp_nav_menu_locations_meta_box() { 1128 _deprecated_function( __FUNCTION__, '3.6 ' );1128 _deprecated_function( __FUNCTION__, '3.6.0' ); 1129 1129 } 1130 1130 1131 1131 /** … … 1139 1139 * @see Core_Upgrader 1140 1140 */ 1141 1141 function wp_update_core($current, $feedback = '') { 1142 _deprecated_function( __FUNCTION__, '3.7 ', 'new Core_Upgrader();' );1142 _deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' ); 1143 1143 1144 1144 if ( !empty($feedback) ) 1145 1145 add_filter('update_feedback', $feedback); … … 1162 1162 * @see Plugin_Upgrader 1163 1163 */ 1164 1164 function wp_update_plugin($plugin, $feedback = '') { 1165 _deprecated_function( __FUNCTION__, '3.7 ', 'new Plugin_Upgrader();' );1165 _deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' ); 1166 1166 1167 1167 if ( !empty($feedback) ) 1168 1168 add_filter('update_feedback', $feedback); … … 1184 1184 * @see Theme_Upgrader 1185 1185 */ 1186 1186 function wp_update_theme($theme, $feedback = '') { 1187 _deprecated_function( __FUNCTION__, '3.7 ', 'new Theme_Upgrader();' );1187 _deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' ); 1188 1188 1189 1189 if ( !empty($feedback) ) 1190 1190 add_filter('update_feedback', $feedback); … … 1203 1203 * @param int|bool $id 1204 1204 */ 1205 1205 function the_attachment_links( $id = false ) { 1206 _deprecated_function( __FUNCTION__, '3.7 ' );1206 _deprecated_function( __FUNCTION__, '3.7.0' ); 1207 1207 } 1208 1208 1209 1209 /** … … 1305 1305 * @param int $new_ID 1306 1306 */ 1307 1307 function _relocate_children( $old_ID, $new_ID ) { 1308 _deprecated_function( __FUNCTION__, '3.9 ' );1308 _deprecated_function( __FUNCTION__, '3.9.0' ); 1309 1309 } 1310 1310 1311 1311 /** … … 1332 1332 * @return string The resulting page's hook_suffix. 1333 1333 */ 1334 1334 function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { 1335 _deprecated_function( __FUNCTION__, '4.5 ', 'add_menu_page()' );1335 _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); 1336 1336 1337 1337 global $_wp_last_object_menu; 1338 1338 … … 1365 1365 * @return string The resulting page's hook_suffix. 1366 1366 */ 1367 1367 function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { 1368 _deprecated_function( __FUNCTION__, '4.5 ', 'add_menu_page()' );1368 _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); 1369 1369 1370 1370 global $_wp_last_utility_menu; 1371 1371 … … 1390 1390 function post_form_autocomplete_off() { 1391 1391 global $is_safari, $is_chrome; 1392 1392 1393 _deprecated_function( __FUNCTION__, '4.6 ' );1393 _deprecated_function( __FUNCTION__, '4.6.0' ); 1394 1394 1395 1395 if ( $is_safari || $is_chrome ) { 1396 1396 echo ' autocomplete="off"'; -
wp-admin/includes/image-edit.php
257 257 258 258 return true; 259 259 } else { 260 _deprecated_argument( __FUNCTION__, '3.5 ', __( '$image needs to be an WP_Image_Editor object' ) );260 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); 261 261 262 262 /** 263 263 * Filters the GD image resource to be streamed to the browser. … … 322 322 323 323 return $image->save( $filename, $mime_type ); 324 324 } else { 325 _deprecated_argument( __FUNCTION__, '3.5 ', __( '$image needs to be an WP_Image_Editor object' ) );325 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); 326 326 327 327 /** This filter is documented in wp-admin/includes/image-edit.php */ 328 328 $image = apply_filters( 'image_save_pre', $image, $post_id ); … … 388 388 * @return resource|false GD image resource, false otherwise. 389 389 */ 390 390 function _rotate_image_resource($img, $angle) { 391 _deprecated_function( __FUNCTION__, '3.5 ', __( 'Use WP_Image_Editor::rotate' ) );391 _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) ); 392 392 if ( function_exists('imagerotate') ) { 393 393 $rotated = imagerotate($img, $angle, 0); 394 394 if ( is_resource($rotated) ) { … … 411 411 * @return resource (maybe) flipped image resource. 412 412 */ 413 413 function _flip_image_resource($img, $horz, $vert) { 414 _deprecated_function( __FUNCTION__, '3.5 ', __( 'Use WP_Image_Editor::flip' ) );414 _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) ); 415 415 $w = imagesx($img); 416 416 $h = imagesy($img); 417 417 $dst = wp_imagecreatetruecolor($w, $h); … … 464 464 */ 465 465 function image_edit_apply_changes( $image, $changes ) { 466 466 if ( is_resource( $image ) ) 467 _deprecated_argument( __FUNCTION__, '3.5 ', __( '$image needs to be an WP_Image_Editor object' ) );467 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); 468 468 469 469 if ( !is_array($changes) ) 470 470 return $image; -
wp-admin/includes/meta-boxes.php
1013 1013 global $link; 1014 1014 1015 1015 if ( !empty( $deprecated ) ) 1016 _deprecated_argument( __FUNCTION__, '0.0 ' ); // Never implemented1016 _deprecated_argument( __FUNCTION__, '0.0.0' ); // Never implemented 1017 1017 1018 1018 $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; 1019 1019 $rels = preg_split('/\s+/', $link_rel); -
wp-admin/includes/ms-deprecated.php
16 16 * @deprecated 3.0.0 17 17 */ 18 18 function wpmu_menu() { 19 _deprecated_function(__FUNCTION__, '3.0 ' );19 _deprecated_function(__FUNCTION__, '3.0.0' ); 20 20 // Deprecated. See #11763. 21 21 } 22 22 … … 27 27 * @see is_upload_space_available() 28 28 */ 29 29 function wpmu_checkAvailableSpace() { 30 _deprecated_function(__FUNCTION__, '3.0 ', 'is_upload_space_available()' );30 _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' ); 31 31 32 32 if ( !is_upload_space_available() ) 33 33 wp_die( __('Sorry, you must delete files before you can upload any more.') ); … … 39 39 * @deprecated 3.0.0 40 40 */ 41 41 function mu_options( $options ) { 42 _deprecated_function(__FUNCTION__, '3.0 ' );42 _deprecated_function(__FUNCTION__, '3.0.0' ); 43 43 return $options; 44 44 } 45 45 … … 50 50 * @see activate_plugin() 51 51 */ 52 52 function activate_sitewide_plugin() { 53 _deprecated_function(__FUNCTION__, '3.0 ', 'activate_plugin()' );53 _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' ); 54 54 return false; 55 55 } 56 56 … … 61 61 * @see deactivate_sitewide_plugin() 62 62 */ 63 63 function deactivate_sitewide_plugin( $plugin = false ) { 64 _deprecated_function(__FUNCTION__, '3.0 ', 'deactivate_plugin()' );64 _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' ); 65 65 } 66 66 67 67 /** … … 71 71 * @see is_network_only_plugin() 72 72 */ 73 73 function is_wpmu_sitewide_plugin( $file ) { 74 _deprecated_function(__FUNCTION__, '3.0 ', 'is_network_only_plugin()' );74 _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' ); 75 75 return is_network_only_plugin( $file ); 76 76 } 77 77 … … 82 82 * @see WP_Theme::get_allowed_on_network() 83 83 */ 84 84 function get_site_allowed_themes() { 85 _deprecated_function( __FUNCTION__, '3.4 ', 'WP_Theme::get_allowed_on_network()' );85 _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' ); 86 86 return array_map( 'intval', WP_Theme::get_allowed_on_network() ); 87 87 } 88 88 … … 93 93 * @see WP_Theme::get_allowed_on_site() 94 94 */ 95 95 function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { 96 _deprecated_function( __FUNCTION__, '3.4 ', 'WP_Theme::get_allowed_on_site()' );96 _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' ); 97 97 return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) ); 98 98 } 99 99 -
wp-admin/includes/ms.php
528 528 global $wpdb; 529 529 530 530 if ( null !== $deprecated ) 531 _deprecated_argument( __FUNCTION__, '3. 1' );531 _deprecated_argument( __FUNCTION__, '3.0.2' ); 532 532 533 533 $wpdb->update( $wpdb->users, array( sanitize_key( $pref ) => $value ), array( 'ID' => $id ) ); 534 534 -
wp-admin/includes/plugin.php
86 86 // Site Wide Only is the old header for Network 87 87 if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) { 88 88 /* translators: 1: Site Wide Only: true, 2: Network: true */ 89 _deprecated_argument( __FUNCTION__, '3.0 ', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );89 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) ); 90 90 $plugin_data['Network'] = $plugin_data['_sitewide']; 91 91 } 92 92 $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); … … 1777 1777 global $new_whitelist_options; 1778 1778 1779 1779 if ( 'misc' == $option_group ) { 1780 _deprecated_argument( __FUNCTION__, '3.0 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );1780 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); 1781 1781 $option_group = 'general'; 1782 1782 } 1783 1783 1784 1784 if ( 'privacy' == $option_group ) { 1785 _deprecated_argument( __FUNCTION__, '3.5 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );1785 _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); 1786 1786 $option_group = 'reading'; 1787 1787 } 1788 1788 … … 1806 1806 global $new_whitelist_options; 1807 1807 1808 1808 if ( 'misc' == $option_group ) { 1809 _deprecated_argument( __FUNCTION__, '3.0 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );1809 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); 1810 1810 $option_group = 'general'; 1811 1811 } 1812 1812 1813 1813 if ( 'privacy' == $option_group ) { 1814 _deprecated_argument( __FUNCTION__, '3.5 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );1814 _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); 1815 1815 $option_group = 'reading'; 1816 1816 } 1817 1817 -
wp-admin/includes/template.php
1196 1196 global $wp_settings_sections; 1197 1197 1198 1198 if ( 'misc' == $page ) { 1199 _deprecated_argument( __FUNCTION__, '3.0 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );1199 _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); 1200 1200 $page = 'general'; 1201 1201 } 1202 1202 1203 1203 if ( 'privacy' == $page ) { 1204 _deprecated_argument( __FUNCTION__, '3.5 ', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );1204 _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); 1205 1205 $page = 'reading'; 1206 1206 } 1207 1207 … … 1247 1247 global $wp_settings_fields; 1248 1248 1249 1249 if ( 'misc' == $page ) { 1250 _deprecated_argument( __FUNCTION__, '3.0 ', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );1250 _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 1251 1251 $page = 'general'; 1252 1252 } 1253 1253 1254 1254 if ( 'privacy' == $page ) { 1255 _deprecated_argument( __FUNCTION__, '3.5 ', __( 'The privacy options group has been removed. Use another settings group.' ) );1255 _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) ); 1256 1256 $page = 'reading'; 1257 1257 } 1258 1258 … … 1988 1988 */ 1989 1989 function convert_to_screen( $hook_name ) { 1990 1990 if ( ! class_exists( 'WP_Screen', false ) ) { 1991 _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3 ' );1991 _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3.0' ); 1992 1992 return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' ); 1993 1993 } 1994 1994 -
wp-admin/includes/theme-install.php
29 29 * @return array 30 30 */ 31 31 function install_themes_feature_list() { 32 _deprecated_function( __FUNCTION__, '3.1 ', 'get_theme_feature_list()' );32 _deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' ); 33 33 34 34 if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) 35 35 set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); … … 160 160 * @param object $theme 161 161 */ 162 162 function display_theme( $theme ) { 163 _deprecated_function( __FUNCTION__, '3.4 ' );163 _deprecated_function( __FUNCTION__, '3.4.0' ); 164 164 global $wp_list_table; 165 165 if ( ! isset( $wp_list_table ) ) { 166 166 $wp_list_table = _get_list_table('WP_Theme_Install_List_Table'); -
wp-admin/includes/upgrade.php
38 38 */ 39 39 function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) { 40 40 if ( !empty( $deprecated ) ) 41 _deprecated_argument( __FUNCTION__, '2.6 ' );41 _deprecated_argument( __FUNCTION__, '2.6.0' ); 42 42 43 43 wp_check_mysql_version(); 44 44 wp_cache_flush(); -
wp-admin/options-general.php
353 353 </p> 354 354 <?php 355 355 } 356 _deprecated_argument( 'define()', '4.0 ', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );356 _deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) ); 357 357 } 358 358 ?> 359 359 </td> -
wp-admin/options.php
195 195 if ( $options ) { 196 196 foreach ( $options as $option ) { 197 197 if ( $unregistered ) { 198 _deprecated_argument( 'options.php', '2.7 ',198 _deprecated_argument( 'options.php', '2.7.0', 199 199 sprintf( 200 200 /* translators: %s: the option/setting */ 201 201 __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ), -
wp-admin/upgrade-functions.php
8 8 * @subpackage Administration 9 9 */ 10 10 11 _deprecated_file( basename(__FILE__), '2.5 ', 'wp-admin/includes/upgrade.php' );11 _deprecated_file( basename(__FILE__), '2.5.0', 'wp-admin/includes/upgrade.php' ); 12 12 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); -
wp-includes/author-template.php
24 24 global $authordata; 25 25 26 26 if ( !empty( $deprecated ) ) 27 _deprecated_argument( __FUNCTION__, '2.1 ' );27 _deprecated_argument( __FUNCTION__, '2.1.0' ); 28 28 29 29 /** 30 30 * Filters the display name of the current post's author. … … 57 57 */ 58 58 function the_author( $deprecated = '', $deprecated_echo = true ) { 59 59 if ( ! empty( $deprecated ) ) { 60 _deprecated_argument( __FUNCTION__, '2.1 ' );60 _deprecated_argument( __FUNCTION__, '2.1.0' ); 61 61 } 62 62 63 63 if ( true !== $deprecated_echo ) { 64 _deprecated_argument( __FUNCTION__, '1.5 ',64 _deprecated_argument( __FUNCTION__, '1.5.0', 65 65 /* translators: %s: get_the_author() */ 66 66 sprintf( __( 'Use %s instead if you do not want the value echoed.' ), 67 67 '<code>get_the_author()</code>' … … 277 277 */ 278 278 function the_author_posts_link( $deprecated = '' ) { 279 279 if ( ! empty( $deprecated ) ) { 280 _deprecated_argument( __FUNCTION__, '2.1 ' );280 _deprecated_argument( __FUNCTION__, '2.1.0' ); 281 281 } 282 282 echo get_the_author_posts_link(); 283 283 } -
wp-includes/cache.php
264 264 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 265 265 */ 266 266 function wp_cache_reset() { 267 _deprecated_function( __FUNCTION__, '3.5 ' );267 _deprecated_function( __FUNCTION__, '3.5.0' ); 268 268 269 269 global $wp_object_cache; 270 270 … … 631 631 * @see switch_to_blog() 632 632 */ 633 633 public function reset() { 634 _deprecated_function( __FUNCTION__, '3.5 ', 'switch_to_blog()' );634 _deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' ); 635 635 636 636 // Clear out non-global caches since the blog ID has changed. 637 637 foreach ( array_keys( $this->cache ) as $group ) { -
wp-includes/category-template.php
387 387 // Back compat. 388 388 if ( isset( $args['type'] ) && 'link' == $args['type'] ) { 389 389 /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */ 390 _deprecated_argument( __FUNCTION__, '3.0 ',390 _deprecated_argument( __FUNCTION__, '3.0.0', 391 391 sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 392 392 '<code>type => link</code>', 393 393 '<code>taxonomy => link_category</code>' -
wp-includes/category.php
42 42 // Back compat 43 43 if ( isset($args['type']) && 'link' == $args['type'] ) { 44 44 /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */ 45 _deprecated_argument( __FUNCTION__, '3.0 ',45 _deprecated_argument( __FUNCTION__, '3.0.0', 46 46 sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 47 47 '<code>type => link</code>', 48 48 '<code>taxonomy => link_category</code>' -
wp-includes/class-snoopy.php
3 3 /** 4 4 * Deprecated. Use WP_HTTP (http.php) instead. 5 5 */ 6 _deprecated_file( basename( __FILE__ ), '3.0 ', WPINC . '/http.php' );6 _deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/http.php' ); 7 7 8 8 if ( ! class_exists( 'Snoopy', false ) ) : 9 9 /************************************************* -
wp-includes/class-wp-admin-bar.php
27 27 return is_ssl() ? 'https://' : 'http://'; 28 28 29 29 case 'menu' : 30 _deprecated_argument( 'WP_Admin_Bar', '3.3 ', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );30 _deprecated_argument( 'WP_Admin_Bar', '3.3.0', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' ); 31 31 return array(); // Sorry, folks. 32 32 } 33 33 } … … 127 127 if ( empty( $args['title'] ) ) 128 128 return; 129 129 130 _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3 ' );130 _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3.0' ); 131 131 // Deprecated: Generate an ID from the title. 132 132 $args['id'] = esc_attr( sanitize_title( trim( $args['title'] ) ) ); 133 133 } … … 559 559 * @param object $node 560 560 */ 561 561 public function recursive_render( $id, $node ) { 562 _deprecated_function( __METHOD__, '3.3 ', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' );562 _deprecated_function( __METHOD__, '3.3.0', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' ); 563 563 $this->_render_item( $node ); 564 564 } 565 565 -
wp-includes/class-wp-customize-manager.php
1298 1298 '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>' 1299 1299 ); 1300 1300 1301 _doing_it_wrong( __METHOD__, $message, '4.5 ' );1301 _doing_it_wrong( __METHOD__, $message, '4.5.0' ); 1302 1302 } 1303 1303 unset( $this->panels[ $id ] ); 1304 1304 } -
wp-includes/class-wp-editor.php
100 100 if ( self::$this_tinymce ) { 101 101 if ( false !== strpos( $editor_id, '[' ) ) { 102 102 self::$this_tinymce = false; 103 _deprecated_argument( 'wp_editor()', '3.9 ', 'TinyMCE editor IDs cannot have brackets.' );103 _deprecated_argument( 'wp_editor()', '3.9.0', 'TinyMCE editor IDs cannot have brackets.' ); 104 104 } 105 105 } 106 106 … … 1302 1302 * @global int $content_width 1303 1303 */ 1304 1304 public static function wp_fullscreen_html() { 1305 _deprecated_function( __FUNCTION__, '4.3 ' );1305 _deprecated_function( __FUNCTION__, '4.3.0' ); 1306 1306 } 1307 1307 1308 1308 /** -
wp-includes/class-wp-user.php
269 269 */ 270 270 public function __isset( $key ) { 271 271 if ( 'id' == $key ) { 272 _deprecated_argument( 'WP_User->id', '2.1 ',272 _deprecated_argument( 'WP_User->id', '2.1.0', 273 273 sprintf( 274 274 /* translators: %s: WP_User->ID */ 275 275 __( 'Use %s instead.' ), … … 299 299 */ 300 300 public function __get( $key ) { 301 301 if ( 'id' == $key ) { 302 _deprecated_argument( 'WP_User->id', '2.1 ',302 _deprecated_argument( 'WP_User->id', '2.1.0', 303 303 sprintf( 304 304 /* translators: %s: WP_User->ID */ 305 305 __( 'Use %s instead.' ), … … 338 338 */ 339 339 public function __set( $key, $value ) { 340 340 if ( 'id' == $key ) { 341 _deprecated_argument( 'WP_User->id', '2.1 ',341 _deprecated_argument( 'WP_User->id', '2.1.0', 342 342 sprintf( 343 343 /* translators: %s: WP_User->ID */ 344 344 __( 'Use %s instead.' ), … … 362 362 */ 363 363 public function __unset( $key ) { 364 364 if ( 'id' == $key ) { 365 _deprecated_argument( 'WP_User->id', '2.1 ',365 _deprecated_argument( 'WP_User->id', '2.1.0', 366 366 sprintf( 367 367 /* translators: %s: WP_User->ID */ 368 368 __( 'Use %s instead.' ), … … 712 712 */ 713 713 public function has_cap( $cap ) { 714 714 if ( is_numeric( $cap ) ) { 715 _deprecated_argument( __FUNCTION__, '2.0 ', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );715 _deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 716 716 $cap = $this->translate_level_to_cap( $cap ); 717 717 } 718 718 -
wp-includes/class.wp-scripts.php
197 197 * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise. 198 198 */ 199 199 public function print_scripts_l10n( $handle, $echo = true ) { 200 _deprecated_function( __FUNCTION__, '3.3 ', 'print_extra_script()' );200 _deprecated_function( __FUNCTION__, '3.3.0', 'print_extra_script()' ); 201 201 return $this->print_extra_script( $handle, $echo ); 202 202 } 203 203 -
wp-includes/comment-template.php
825 825 if ( !empty( $deprecated ) ) 826 826 _deprecated_argument( __FUNCTION__, '0.72' ); 827 827 if ( !empty( $deprecated_2 ) ) 828 _deprecated_argument( __FUNCTION__, '1.3 ' );828 _deprecated_argument( __FUNCTION__, '1.3.0' ); 829 829 echo esc_url( get_comments_link() ); 830 830 } 831 831 … … 870 870 */ 871 871 function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) { 872 872 if ( ! empty( $deprecated ) ) { 873 _deprecated_argument( __FUNCTION__, '1.3 ' );873 _deprecated_argument( __FUNCTION__, '1.3.0' ); 874 874 } 875 875 echo get_comments_number_text( $zero, $one, $more ); 876 876 } … … 1111 1111 */ 1112 1112 function trackback_url( $deprecated_echo = true ) { 1113 1113 if ( true !== $deprecated_echo ) { 1114 _deprecated_argument( __FUNCTION__, '2.5 ',1114 _deprecated_argument( __FUNCTION__, '2.5.0', 1115 1115 /* translators: %s: get_trackback_url() */ 1116 1116 sprintf( __( 'Use %s instead if you do not want the value echoed.' ), 1117 1117 '<code>get_trackback_url()</code>' … … 1137 1137 */ 1138 1138 function trackback_rdf( $deprecated = '' ) { 1139 1139 if ( ! empty( $deprecated ) ) { 1140 _deprecated_argument( __FUNCTION__, '2.5 ' );1140 _deprecated_argument( __FUNCTION__, '2.5.0' ); 1141 1141 } 1142 1142 1143 1143 if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'W3C_Validator' ) ) { -
wp-includes/comment.php
2195 2195 */ 2196 2196 function discover_pingback_server_uri( $url, $deprecated = '' ) { 2197 2197 if ( !empty( $deprecated ) ) 2198 _deprecated_argument( __FUNCTION__, '2.7 ' );2198 _deprecated_argument( __FUNCTION__, '2.7.0' ); 2199 2199 2200 2200 $pingback_str_dquote = 'rel="pingback"'; 2201 2201 $pingback_str_squote = 'rel=\'pingback\''; -
wp-includes/cron.php
191 191 // Backward compatibility 192 192 // Previously this function took the arguments as discrete vars rather than an array like the rest of the API 193 193 if ( !is_array($args) ) { 194 _deprecated_argument( __FUNCTION__, '3.0 ', __('This argument has changed to an array to match the behavior of the other cron functions.') );194 _deprecated_argument( __FUNCTION__, '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); 195 195 $args = array_slice( func_get_args(), 1 ); 196 196 } 197 197 -
wp-includes/deprecated.php
61 61 function start_wp() { 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. 67 67 $wp_query->next_post(); … … 134 134 */ 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 ) 140 140 $in_same_cat = false; … … 169 169 * @param string $excluded_categories 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 ) 175 175 $in_same_cat = false; … … 202 202 * @return bool 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); 208 208 return ($author_data->user_level > 1); … … 221 221 * @return bool 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); 227 227 return ($author_data->user_level >= 1); … … 240 240 * @return bool 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); 246 246 $post = get_post($post_id); … … 268 268 * @return bool 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 274 274 return user_can_edit_post($user_id, $post_id, $blog_id); … … 287 287 * @return bool 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); 293 293 return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id)); … … 306 306 * @return bool returns true if $user_id can edit $post_id's date 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); 312 312 return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id)); … … 325 325 * @return bool returns true if $user_id can edit $post_id's comments 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 331 331 return user_can_edit_post($user_id, $post_id, $blog_id); … … 344 344 * @return bool returns true if $user_id can delete $post_id's comments 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 350 350 return user_can_edit_post_comments($user_id, $post_id, $blog_id); … … 362 362 * @return bool 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); 368 368 $other = get_userdata($other_user); … … 395 395 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = '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; 401 401 $cat = get_term_by('name', $cat_name, 'link_category'); … … 417 417 * @return string|null 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( 423 423 'after' => '<br />', … … 455 455 * @return 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; 461 461 $cat = get_term_by('name', $cat_name, 'link_category'); … … 506 506 * @return array 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 ) ) ; 512 512 … … 539 539 */ 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); 545 545 } … … 566 566 */ 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); 572 572 } … … 581 581 * @return int Only returns 0. 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 } 587 587 … … 615 615 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, 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', 621 621 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical'); … … 633 633 * @return false|null|string 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 ); 639 639 … … 677 677 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', 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 = ''; 683 683 if ( $optionall ) … … 709 709 * @return null|string 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'); 715 715 return wp_list_authors($args); … … 727 727 * @return array 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 } 733 733 … … 745 745 * @return bool|mixed 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 } 751 751 … … 765 765 * @return string|null 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); 771 771 } … … 783 783 * @return string|null 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); 789 789 … … 810 810 */ 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'); 816 816 return wp_link_pages($args); … … 827 827 * @return string 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); 833 833 } … … 840 840 * @see the_permalink() 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 } 846 846 … … 854 854 * @param string $deprecated 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 } 860 860 … … 869 869 * @return null|string 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 ) { 875 875 $cat_id = $args; … … 923 923 */ 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'; 929 929 if ( substr($orderby, 0, 1) == '_' ) { … … 1015 1015 * @param string $order Sort link categories by 'name' or 'id' 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); 1021 1021 … … 1060 1060 * @param bool $count the number of links in the db 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 1066 1066 /** … … 1074 1074 * @return mixed Value of the 'link_rating' field, false otherwise. 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 } 1080 1080 … … 1089 1089 * @return string 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; 1095 1095 … … 1117 1117 * @param string $link_text 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 } 1123 1123 … … 1133 1133 * @return string 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'); 1139 1139 … … 1154 1154 * @return string 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); 1160 1160 if ( $echo ) … … 1172 1172 * @return string 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 } 1178 1178 … … 1189 1189 * @return int The new user's ID. 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 } 1195 1195 … … 1199 1199 * @deprecated 2.5.0 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 } 1205 1205 … … 1216 1216 * @return array The comment data 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 } 1222 1222 … … 1231 1231 * @return string category name 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 } 1237 1237 … … 1249 1249 * @return string 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 ''; 1255 1255 … … 1284 1284 * @return object List of all of the category IDs. 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' ) ) { 1290 1290 $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') ); … … 1304 1304 * @return string The author's description. 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 } 1310 1310 … … 1316 1316 * @see the_author_meta() 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 } 1322 1322 … … 1330 1330 * @return string The author's login name (username). 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 } 1336 1336 … … 1342 1342 * @see the_author_meta() 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 } 1348 1348 … … 1356 1356 * @return string The author's first name. 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 } 1362 1362 … … 1368 1368 * @see the_author_meta() 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 } 1374 1374 … … 1382 1382 * @return string The author's last name. 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 } 1388 1388 … … 1394 1394 * @see the_author_meta() 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 } 1400 1400 … … 1408 1408 * @return string The author's nickname. 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 } 1414 1414 … … 1420 1420 * @see the_author_meta() 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 } 1426 1426 … … 1434 1434 * @return string The author's username. 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 } 1440 1440 … … 1446 1446 * @see the_author_meta() 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 } 1452 1452 … … 1460 1460 * @return string The author's ICQ number. 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 } 1466 1466 … … 1472 1472 * @see the_author_meta() 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 } 1478 1478 … … 1486 1486 * @return string The author's Yahoo! IM name. 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 } 1492 1492 … … 1498 1498 * @see the_author_meta() 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 } 1504 1504 … … 1512 1512 * @return string The author's MSN address. 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 } 1518 1518 … … 1524 1524 * @see the_author_meta() 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 } 1530 1530 … … 1538 1538 * @return string The author's AIM address. 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 } 1544 1544 … … 1550 1550 * @see the_author_meta() 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 } 1556 1556 … … 1565 1565 * @return string The author's display name. 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 } 1571 1571 … … 1579 1579 * @return string The URL to the author's page. 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 } 1585 1585 … … 1591 1591 * @see the_author_meta() 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 } 1597 1597 … … 1605 1605 * @return string|int The author's ID. 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 } 1611 1611 … … 1617 1617 * @see the_author_meta() 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 } 1623 1623 … … 1650 1650 * @param int $encode_html Optional. How to encode the content. 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); 1656 1656 if ( $cut && !$encode_html ) … … 1696 1696 * @return string HTML stripped out of content with links at the bottom. 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"; 1702 1702 for ( $i = 0, $c = count( $matches[0] ); $i < $c; $i++ ) { … … 1735 1735 * @return string Translated context string without pipe 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 } 1741 1741 … … 1752 1752 * @return string Translated text 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 } 1758 1758 … … 1773 1773 * @return string The translated singular or plural form. 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 } 1779 1779 … … 1785 1785 * @see _n() 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); 1791 1791 } … … 1798 1798 * @see _n_noop() 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); 1804 1804 … … 1814 1814 * @return array List of all options. 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 } 1820 1820 … … 1832 1832 * @return string 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); 1838 1838 … … 1860 1860 * @return array Icon URL and full path to file, respectively. 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) ) 1866 1866 return false; … … 1902 1902 * @return false|string HTML content. 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) ) 1908 1908 return false; … … 1958 1958 * @return false|string 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) ) 1964 1964 return false; … … 1986 1986 * @return object|array Bookmark object or array, depending on the type specified by `$output`. 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 } 1992 1992 … … 2002 2002 * @return string The cleaned URL. 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 } 2008 2008 … … 2024 2024 */ 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 } 2032 2032 … … 2043 2043 * @return string Escaped text. 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 } 2049 2049 … … 2060 2060 * @return string Escaped `$string`. 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(); 2066 2066 return call_user_func_array( '_wp_specialchars', $args ); … … 2080 2080 * @return string 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 } 2086 2086 … … 2104 2104 * @param mixed $params ,... Widget parameters. 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) ) { 2110 2110 if ( count($name) == 3 ) … … 2135 2135 * @param int|string $id Widget ID. 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 } 2141 2141 … … 2159 2159 * @param int $height Widget height. 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) ) { 2165 2165 if ( count($name) == 3 ) … … 2192 2192 * @param int|string $id Widget ID. 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 } 2198 2198 … … 2209 2209 * @return bool True deletion completed and false if user_id is not a number. 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 ) ) 2215 2215 return false; … … 2255 2255 * @return mixed 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; 2261 2261 … … 2308 2308 * @return bool True on successful update, false on failure. 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 ) ) 2314 2314 return false; … … 2363 2363 * @return array List of users that are part of that site 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; 2369 2369 if ( empty($id) ) … … 2383 2383 * @param bool $add Optional, default is true. Add or remove links. Defaults to true. 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 ) 2389 2389 add_theme_support( 'automatic-feed-links' ); … … 2403 2403 * @return string The author's field from the current author's DB object. 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 ); 2409 2409 $user = $user->ID; … … 2422 2422 * @return int Number of posts the given user has written. 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 } 2428 2428 … … 2455 2455 * @return string Fixed text. 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; 2461 2461 … … 2478 2478 * @return bool Whether the taxonomy exists. 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 } 2484 2484 … … 2495 2495 * @return mixed Get the term id or Term Object, if exists. 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 } 2501 2501 … … 2512 2512 * @return bool 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; 2518 2518 … … 2535 2535 * @return bool Always return True 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; 2541 2541 } … … 2549 2549 * @return bool 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; 2555 2555 } … … 2569 2569 * @param bool $extended Optional. Unused. 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 ) ); 2575 2575 } … … 2584 2584 * @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays. 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(); 2590 2590 … … 2618 2618 * @return object|array The now sanitized User Object or Array (will be the same type as $user) 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) ) { 2624 2624 if ( !isset($user->ID) ) … … 2657 2657 * @return string 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); 2663 2663 // If there is no post stop. … … 2695 2695 * @param string $excluded_categories Optional. Excluded categories IDs. 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); 2701 2701 } … … 2709 2709 * @return string 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"; 2715 2715 return apply_filters( "index_rel_link", $link ); … … 2722 2722 * @deprecated 3.3.0 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(); 2728 2728 } … … 2737 2737 * @return string 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 ) ) 2743 2743 $post = get_post($GLOBALS['post']->post_parent); … … 2767 2767 * @param string $title Optional. Link title format. Default '%title'. 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); 2773 2773 } … … 2781 2781 * @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance. 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(); 2787 2787 … … 2806 2806 * @return bool True if the current users belong to $blog_id, false if not. 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 ); 2812 2812 } … … 2876 2876 * @return array Theme list with theme data. 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; 2882 2882 if ( isset( $wp_themes ) ) … … 2907 2907 * @return array|null Null, if theme name does not exist. Theme data, if exists. 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(); 2913 2913 if ( is_array( $themes ) && array_key_exists( $theme, $themes ) ) … … 2925 2925 * @return string 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' ) ) 2931 2931 return $theme; … … 2946 2946 * @return string The pre block without paragraph/line-break conversion. 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) ) 2952 2952 $text = $matches[1] . $matches[2] . "</pre>"; … … 2973 2973 * @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional. 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, 2979 2979 'admin-head-callback' => $admin_head_callback, … … 2993 2993 * @return null|bool Whether support was removed. 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 } 2999 2999 … … 3009 3009 * @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional. 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 ) 3015 3015 $args['wp-head-callback'] = $wp_head_callback; … … 3030 3030 * @return null|bool Whether support was removed. 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 } 3036 3036 … … 3045 3045 * @return array Theme data. 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 3051 3051 $theme_data = array( … … 3082 3082 * @param array $pages list of page objects 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 ); 3088 3088 } … … 3100 3100 * @param int $id Page ID to clean 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 ); 3106 3106 } … … 3132 3132 * @param int $post_id An optional post 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'; 3138 3138 } … … 3150 3150 * @param WP_Post &$post Post object, passed by reference (unused). 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 3156 3156 /** … … 3164 3164 * @return resource The resulting image resource on success, Error string on failure. 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 ) ) 3170 3170 $file = get_attached_file( $file ); … … 3214 3214 * @return mixed WP_Error on failure. String with new destination path. 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 ); 3220 3220 if ( is_wp_error( $editor ) ) … … 3249 3249 * @return WP_Post|null Post object or array holding post contents and information 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 } 3255 3255 … … 3265 3265 * @return bool False if does not authenticate, true if username and password authenticates. 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 ) ) 3271 3271 return false; … … 3292 3292 * @return bool 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') ) { 3298 3298 switch( $mime_type ) { … … 3327 3327 * @return string A shorthand byte value. 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' ); 3333 3333 $log = log( $bytes, KB_IN_BYTES ); … … 3355 3355 * @return string Trimmed search terms. 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 } 3361 3361 … … 3372 3372 */ 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 ) ) 3378 3378 $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' ); … … 3406 3406 * @return string The very same text. 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 } 3412 3412 … … 3421 3421 * @return string text, safe for inclusion in LIKE query. 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 } 3427 3427 … … 3438 3438 * @return bool Whether SSL access is available. 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' ) ); 3444 3444 … … 3462 3462 * @deprecated 4.3.0 3463 3463 */ 3464 3464 function preview_theme() { 3465 _deprecated_function( __FUNCTION__, '4.3 ' );3465 _deprecated_function( __FUNCTION__, '4.3.0' ); 3466 3466 } 3467 3467 3468 3468 /** … … 3475 3475 * @return string 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 } 3481 3481 … … 3489 3489 * @return string 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 } 3495 3495 … … 3504 3504 * @return string 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 } 3510 3510 … … 3521 3521 * @return string 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 } 3527 3527 … … 3538 3538 * @return string The formatted text after filter is applied. 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 ) ) { 3544 3544 /** … … 3581 3581 * @return string Formatted text after filter applied. 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) ) 3587 3587 $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > & … … 3608 3608 * @return string|false 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 ); 3614 3614 } … … 3630 3630 * @return bool|string False on failure and string of headers if HEAD request. 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 ); 3636 3636 … … 3684 3684 * @return bool True if forced, false if not forced. 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 } 3690 3690 … … 3697 3697 * @return string Full path to comments popup template file. 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 ''; 3703 3703 } … … 3711 3711 * @return bool 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; 3717 3717 } … … 3723 3723 * @deprecated 4.5.0 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 3729 3729 /** … … 3736 3736 * @return string Content that has filtered links. 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; 3742 3742 } … … 3754 3754 * @return string The base URL. 3755 3755 */ 3756 3756 function _wp_upload_dir_baseurl() { 3757 _deprecated_function( __FUNCTION__, '4.5 ', 'wp_get_upload_dir()' );3757 _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_upload_dir()' ); 3758 3758 $upload_dir = wp_get_upload_dir(); 3759 3759 return $upload_dir['baseurl']; 3760 3760 } -
wp-includes/embed-template.php
8 8 * @deprecated 4.5.0 Moved to wp-includes/theme-compat/embed.php 9 9 */ 10 10 11 _deprecated_file( basename( __FILE__ ), '4.5 ', 'wp-includes/theme-compat/embed.php' );11 _deprecated_file( basename( __FILE__ ), '4.5.0', 'wp-includes/theme-compat/embed.php' ); 12 12 13 13 include( ABSPATH . WPINC . '/theme-compat/embed.php' ); -
wp-includes/formatting.php
2473 2473 */ 2474 2474 function is_email( $email, $deprecated = false ) { 2475 2475 if ( ! empty( $deprecated ) ) 2476 _deprecated_argument( __FUNCTION__, '3.0 ' );2476 _deprecated_argument( __FUNCTION__, '3.0.0' ); 2477 2477 2478 2478 // Test for the minimum length the email can be 2479 2479 if ( strlen( $email ) < 3 ) { -
wp-includes/functions.php
637 637 */ 638 638 function wp_get_http_headers( $url, $deprecated = false ) { 639 639 if ( !empty( $deprecated ) ) 640 _deprecated_argument( __FUNCTION__, '2.7 ' );640 _deprecated_argument( __FUNCTION__, '2.7.0' ); 641 641 642 642 $response = wp_safe_remote_head( $url ); 643 643 … … 2106 2106 */ 2107 2107 function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 2108 2108 if ( !empty( $deprecated ) ) 2109 _deprecated_argument( __FUNCTION__, '2.0 ' );2109 _deprecated_argument( __FUNCTION__, '2.0.0' ); 2110 2110 2111 2111 if ( empty( $name ) ) 2112 2112 return array( 'error' => __( 'Empty filename' ) ); … … 3812 3812 * For example: 3813 3813 * 3814 3814 * if ( ! empty( $deprecated ) ) { 3815 * _deprecated_argument( __FUNCTION__, '3.0 ' );3815 * _deprecated_argument( __FUNCTION__, '3.0.0' ); 3816 3816 * } 3817 3817 * 3818 3818 * -
wp-includes/functions.wp-scripts.php
43 43 '<code>wp_enqueue_scripts</code>', 44 44 '<code>admin_enqueue_scripts</code>', 45 45 '<code>login_enqueue_scripts</code>' 46 ), '3.3 ' );46 ), '3.3.0' ); 47 47 } 48 48 49 49 /** … … 112 112 __( 'Do not pass %1$s tags to %2$s.' ), 113 113 '<code><script></code>', 114 114 '<code>wp_add_inline_script()</code>' 115 ), '4.5 ' );115 ), '4.5.0' ); 116 116 $data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) ); 117 117 } 118 118 … … 226 226 if ( in_array( $handle, $no ) ) { 227 227 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 228 228 "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' ); 229 _doing_it_wrong( __FUNCTION__, $message, '3.6 ' );229 _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); 230 230 return; 231 231 } 232 232 } -
wp-includes/functions.wp-styles.php
89 89 __( 'Do not pass %1$s tags to %2$s.' ), 90 90 '<code><style></code>', 91 91 '<code>wp_add_inline_style()</code>' 92 ), '3.7 ' );92 ), '3.7.0' ); 93 93 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 94 94 } 95 95 -
wp-includes/general-template.php
646 646 switch( $show ) { 647 647 case 'home' : // DEPRECATED 648 648 case 'siteurl' : // DEPRECATED 649 _deprecated_argument( __FUNCTION__, '2.2 ', sprintf(649 _deprecated_argument( __FUNCTION__, '2.2.0', sprintf( 650 650 /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */ 651 651 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ), 652 652 '<code>' . $show . '</code>', … … 719 719 } 720 720 break; 721 721 case 'text_direction': 722 _deprecated_argument( __FUNCTION__, '2.2 ', sprintf(722 _deprecated_argument( __FUNCTION__, '2.2.0', sprintf( 723 723 /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */ 724 724 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ), 725 725 '<code>' . $show . '</code>', -
wp-includes/l10n.php
684 684 if ( false !== $plugin_rel_path ) { 685 685 $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' ); 686 686 } elseif ( false !== $deprecated ) { 687 _deprecated_argument( __FUNCTION__, '2.7 ' );687 _deprecated_argument( __FUNCTION__, '2.7.0' ); 688 688 $path = ABSPATH . trim( $deprecated, '/' ); 689 689 } else { 690 690 $path = WP_PLUGIN_DIR; -
wp-includes/link-template.php
1352 1352 */ 1353 1353 function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) { 1354 1354 if ( ! empty( $deprecated ) ) 1355 _deprecated_argument( __FUNCTION__, '3.0 ' );1355 _deprecated_argument( __FUNCTION__, '3.0.0' ); 1356 1356 1357 1357 if ( !$post = get_post( $id ) ) 1358 1358 return; … … 1599 1599 if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) { 1600 1600 // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and " 1601 1601 if ( false !== strpos( $excluded_terms, ' and ' ) ) { 1602 _deprecated_argument( __FUNCTION__, '3.3 ', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );1602 _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) ); 1603 1603 $excluded_terms = explode( ' and ', $excluded_terms ); 1604 1604 } else { 1605 1605 $excluded_terms = explode( ',', $excluded_terms ); -
wp-includes/load.php
589 589 590 590 // Check for hacks file if the option is enabled 591 591 if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) { 592 _deprecated_file( 'my-hacks.php', '1.5 ' );592 _deprecated_file( 'my-hacks.php', '1.5.0' ); 593 593 array_unshift( $plugins, ABSPATH . 'my-hacks.php' ); 594 594 } 595 595 -
wp-includes/ms-blogs.php
737 737 $id = (int) $id; 738 738 739 739 if ( null !== $deprecated ) 740 _deprecated_argument( __FUNCTION__, '3.1 ' );740 _deprecated_argument( __FUNCTION__, '3.1.0' ); 741 741 742 742 if ( get_current_blog_id() == $id ) 743 743 return update_option( $option, $value ); … … 971 971 global $wpdb; 972 972 973 973 if ( null !== $deprecated ) 974 _deprecated_argument( __FUNCTION__, '3.1 ' );974 _deprecated_argument( __FUNCTION__, '3.1.0' ); 975 975 976 976 if ( ! in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) ) 977 977 return $value; -
wp-includes/ms-default-constants.php
140 140 if ( $subdomain_error_warn ) { 141 141 trigger_error( __( '<strong>Conflicting values for the constants VHOST and SUBDOMAIN_INSTALL.</strong> The value of SUBDOMAIN_INSTALL will be assumed to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated, E_USER_WARNING ); 142 142 } else { 143 _deprecated_argument( 'define()', '3.0 ', $vhost_deprecated );143 _deprecated_argument( 'define()', '3.0.0', $vhost_deprecated ); 144 144 } 145 145 return; 146 146 } -
wp-includes/ms-deprecated.php
24 24 * @return int Current site ID. 25 25 */ 26 26 function get_dashboard_blog() { 27 _deprecated_function( __FUNCTION__, '3.1 ' );27 _deprecated_function( __FUNCTION__, '3.1.0' ); 28 28 if ( $blog = get_site_option( 'dashboard_blog' ) ) 29 29 return get_blog_details( $blog ); 30 30 … … 41 41 * @param int $len Optional. The length of password to generate. Default 8. 42 42 */ 43 43 function generate_random_password( $len = 8 ) { 44 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_generate_password()' );44 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' ); 45 45 return wp_generate_password( $len ); 46 46 } 47 47 … … 61 61 * @param string $user_login Optional. Username for the user to check. Default empty. 62 62 */ 63 63 function is_site_admin( $user_login = '' ) { 64 _deprecated_function( __FUNCTION__, '3.0 ', 'is_super_admin()' );64 _deprecated_function( __FUNCTION__, '3.0.0', 'is_super_admin()' ); 65 65 66 66 if ( empty( $user_login ) ) { 67 67 $user_id = get_current_user_id(); … … 86 86 * @see wp_die() 87 87 */ 88 88 function graceful_fail( $message ) { 89 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_die()' );89 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' ); 90 90 $message = apply_filters( 'graceful_fail', $message ); 91 91 $message_template = apply_filters( 'graceful_fail_template', 92 92 '<!DOCTYPE html> … … 126 126 * @param string $username Username. 127 127 */ 128 128 function get_user_details( $username ) { 129 _deprecated_function( __FUNCTION__, '3.0 ', 'get_user_by()' );129 _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' ); 130 130 return get_user_by('login', $username); 131 131 } 132 132 … … 140 140 * @param int $post_id Post ID. 141 141 */ 142 142 function clear_global_post_cache( $post_id ) { 143 _deprecated_function( __FUNCTION__, '3.0 ', 'clean_post_cache()' );143 _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' ); 144 144 } 145 145 146 146 /** … … 151 151 * @see is_main_site() 152 152 */ 153 153 function is_main_blog() { 154 _deprecated_function( __FUNCTION__, '3.0 ', 'is_main_site()' );154 _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' ); 155 155 return is_main_site(); 156 156 } 157 157 … … 167 167 * @return string|bool Either false or the valid email address. 168 168 */ 169 169 function validate_email( $email, $check_domain = true) { 170 _deprecated_function( __FUNCTION__, '3.0 ', 'is_email()' );170 _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' ); 171 171 return is_email( $email, $check_domain ); 172 172 } 173 173 … … 183 183 * @param string $deprecated Unused. 184 184 */ 185 185 function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) { 186 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_get_sites()' );186 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_get_sites()' ); 187 187 188 188 global $wpdb; 189 189 $blogs = $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid), ARRAY_A ); … … 216 216 * @return array List of "most active" sites. 217 217 */ 218 218 function get_most_active_blogs( $num = 10, $display = true ) { 219 _deprecated_function( __FUNCTION__, '3.0 ' );219 _deprecated_function( __FUNCTION__, '3.0.0' ); 220 220 221 221 $blogs = get_blog_list( 0, 'all', false ); // $blog_id -> $details 222 222 if ( is_array( $blogs ) ) { … … 267 267 * @param string $url Optional. Redirect URL. Default empty. 268 268 */ 269 269 function wpmu_admin_do_redirect( $url = '' ) { 270 _deprecated_function( __FUNCTION__, '3.3 ' );270 _deprecated_function( __FUNCTION__, '3.3.0' ); 271 271 272 272 $ref = ''; 273 273 if ( isset( $_GET['ref'] ) ) … … 307 307 * @return string 308 308 */ 309 309 function wpmu_admin_redirect_add_updated_param( $url = '' ) { 310 _deprecated_function( __FUNCTION__, '3.3 ' );310 _deprecated_function( __FUNCTION__, '3.3.0' ); 311 311 312 312 if ( strpos( $url, 'updated=true' ) === false ) { 313 313 if ( strpos( $url, '?' ) === false ) … … 332 332 * @return int 333 333 */ 334 334 function get_user_id_from_string( $string ) { 335 _deprecated_function( __FUNCTION__, '3.6 ', 'get_user_by()' );335 _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' ); 336 336 337 337 if ( is_email( $string ) ) 338 338 $user = get_user_by( 'email', $string ); … … 357 357 * @return string 358 358 */ 359 359 function get_blogaddress_by_domain( $domain, $path ) { 360 _deprecated_function( __FUNCTION__, '3.7 ' );360 _deprecated_function( __FUNCTION__, '3.7.0' ); 361 361 362 362 if ( is_subdomain_install() ) { 363 363 $url = "http://" . $domain.$path; … … 388 388 * @return string|int The ID of the newly created blog 389 389 */ 390 390 function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { 391 _deprecated_function( __FUNCTION__, '4.4 ' );391 _deprecated_function( __FUNCTION__, '4.4.0' ); 392 392 393 393 if ( empty($path) ) 394 394 $path = '/'; … … 424 424 * @return array|false The network admins 425 425 */ 426 426 function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { 427 _deprecated_function( __FUNCTION__, '4.4 ' );427 _deprecated_function( __FUNCTION__, '4.4.0' ); 428 428 429 429 global $wpdb; 430 430 -
wp-includes/ms-functions.php
115 115 */ 116 116 function get_blog_count( $network_id = 0 ) { 117 117 if ( func_num_args() ) 118 _deprecated_argument( __FUNCTION__, '3.1 ' );118 _deprecated_argument( __FUNCTION__, '3.1.0' ); 119 119 120 120 return get_site_option( 'blog_count' ); 121 121 } -
wp-includes/ms-load.php
520 520 * @return object 521 521 */ 522 522 function get_current_site_name( $current_site ) { 523 _deprecated_function( __FUNCTION__, '3.9 ', 'get_current_site()' );523 _deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' ); 524 524 return $current_site; 525 525 } 526 526 … … 540 540 */ 541 541 function wpmu_current_site() { 542 542 global $current_site; 543 _deprecated_function( __FUNCTION__, '3.9 ' );543 _deprecated_function( __FUNCTION__, '3.9.0' ); 544 544 return $current_site; 545 545 } -
wp-includes/option.php
399 399 global $wpdb; 400 400 401 401 if ( !empty( $deprecated ) ) 402 _deprecated_argument( __FUNCTION__, '2.3 ' );402 _deprecated_argument( __FUNCTION__, '2.3.0' ); 403 403 404 404 $option = trim($option); 405 405 if ( empty($option) ) -
wp-includes/pluggable-deprecated.php
30 30 * @return WP_User returns wp_set_current_user() 31 31 */ 32 32 function set_current_user($id, $name = '') { 33 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_set_current_user()' );33 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' ); 34 34 return wp_set_current_user($id, $name); 35 35 } 36 36 endif; … … 46 46 * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise. 47 47 */ 48 48 function get_currentuserinfo() { 49 _deprecated_function( __FUNCTION__, '4.5 ', 'wp_get_current_user()' );49 _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' ); 50 50 51 51 return _wp_get_current_user(); 52 52 } … … 64 64 * @return bool|object False on failure, User DB row object 65 65 */ 66 66 function get_userdatabylogin($user_login) { 67 _deprecated_function( __FUNCTION__, '3.3 ', "get_user_by('login')" );67 _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" ); 68 68 return get_user_by('login', $user_login); 69 69 } 70 70 endif; … … 81 81 * @return bool|object False on failure, User DB row object 82 82 */ 83 83 function get_user_by_email($email) { 84 _deprecated_function( __FUNCTION__, '3.3 ', "get_user_by('email')" );84 _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" ); 85 85 return get_user_by('email', $email); 86 86 } 87 87 endif; … … 102 102 * @param bool $remember Optional. Remember that the user is logged in 103 103 */ 104 104 function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) { 105 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_set_auth_cookie()' );105 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()' ); 106 106 $user = get_user_by('login', $username); 107 107 wp_set_auth_cookie($user->ID, $remember); 108 108 } 109 109 else : 110 _deprecated_function( 'wp_setcookie', '2.5 ', 'wp_set_auth_cookie()' );110 _deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()' ); 111 111 endif; 112 112 113 113 if ( !function_exists('wp_clearcookie') ) : … … 119 119 * @see wp_clear_auth_cookie() 120 120 */ 121 121 function wp_clearcookie() { 122 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_clear_auth_cookie()' );122 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' ); 123 123 wp_clear_auth_cookie(); 124 124 } 125 125 else : 126 _deprecated_function( 'wp_clearcookie', '2.5 ', 'wp_clear_auth_cookie()' );126 _deprecated_function( 'wp_clearcookie', '2.5.0', 'wp_clear_auth_cookie()' ); 127 127 endif; 128 128 129 129 if ( !function_exists('wp_get_cookie_login') ): … … 139 139 * @return bool Always returns false 140 140 */ 141 141 function wp_get_cookie_login() { 142 _deprecated_function( __FUNCTION__, '2.5 ' );142 _deprecated_function( __FUNCTION__, '2.5.0' ); 143 143 return false; 144 144 } 145 145 else : 146 _deprecated_function( 'wp_get_cookie_login', '2.5 ' );146 _deprecated_function( 'wp_get_cookie_login', '2.5.0' ); 147 147 endif; 148 148 149 149 if ( !function_exists('wp_login') ) : … … 169 169 * @return bool False on login failure, true on successful check 170 170 */ 171 171 function wp_login($username, $password, $deprecated = '') { 172 _deprecated_function( __FUNCTION__, '2.5 ', 'wp_signon()' );172 _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' ); 173 173 global $error; 174 174 175 175 $user = wp_authenticate($username, $password); … … 181 181 return false; 182 182 } 183 183 else : 184 _deprecated_function( 'wp_login', '2.5 ', 'wp_signon()' );184 _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' ); 185 185 endif; 186 186 187 187 /** … … 198 198 if ( ! class_exists( 'wp_atom_server', false ) ) { 199 199 class wp_atom_server { 200 200 public function __call( $name, $arguments ) { 201 _deprecated_function( __CLASS__ . '::' . $name, '3.5 ', 'the Atom Publishing Protocol plugin' );201 _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); 202 202 } 203 203 204 204 public static function __callStatic( $name, $arguments ) { 205 _deprecated_function( __CLASS__ . '::' . $name, '3.5 ', 'the Atom Publishing Protocol plugin' );205 _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); 206 206 } 207 207 } 208 208 } -
wp-includes/pluggable.php
1051 1051 */ 1052 1052 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1053 1053 if ( -1 == $action ) 1054 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2 ' );1054 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1055 1055 1056 1056 $adminurl = strtolower(admin_url()); 1057 1057 $referer = strtolower(wp_get_referer()); … … 1339 1339 */ 1340 1340 function wp_notify_postauthor( $comment_id, $deprecated = null ) { 1341 1341 if ( null !== $deprecated ) { 1342 _deprecated_argument( __FUNCTION__, '3.8 ' );1342 _deprecated_argument( __FUNCTION__, '3.8.0' ); 1343 1343 } 1344 1344 1345 1345 $comment = get_comment( $comment_id ); -
wp-includes/plugin.php
830 830 */ 831 831 function register_uninstall_hook( $file, $callback ) { 832 832 if ( is_array( $callback ) && is_object( $callback[0] ) ) { 833 _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1 ' );833 _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1.0' ); 834 834 return; 835 835 } 836 836 -
wp-includes/post-template.php
364 364 */ 365 365 function get_the_excerpt( $post = null ) { 366 366 if ( is_bool( $post ) ) { 367 _deprecated_argument( __FUNCTION__, '2.3 ' );367 _deprecated_argument( __FUNCTION__, '2.3.0' ); 368 368 } 369 369 370 370 $post = get_post( $post ); … … 1408 1408 */ 1409 1409 function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { 1410 1410 if ( !empty( $deprecated ) ) 1411 _deprecated_argument( __FUNCTION__, '2.5 ' );1411 _deprecated_argument( __FUNCTION__, '2.5.0' ); 1412 1412 1413 1413 if ( $fullsize ) 1414 1414 echo wp_get_attachment_link($id, 'full', $permalink); … … 1715 1715 // $args array with (parent, format, right, left, type) deprecated since 3.6 1716 1716 if ( is_array( $type ) ) { 1717 1717 $type = ! empty( $type['type'] ) ? $type['type'] : $type; 1718 _deprecated_argument( __FUNCTION__, '3.6 ' );1718 _deprecated_argument( __FUNCTION__, '3.6.0' ); 1719 1719 } 1720 1720 1721 1721 if ( ! $revisions = wp_get_post_revisions( $post->ID ) ) -
wp-includes/post.php
1053 1053 $args->name = $post_type; 1054 1054 1055 1055 if ( empty( $post_type ) || strlen( $post_type ) > 20 ) { 1056 _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2 ' );1056 _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2.0' ); 1057 1057 return new WP_Error( 'post_type_length_invalid', __( 'Post type names must be between 1 and 20 characters in length.' ) ); 1058 1058 } 1059 1059 … … 2925 2925 function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { 2926 2926 2927 2927 if ( is_numeric( $args ) ) { 2928 _deprecated_argument( __FUNCTION__, '3.1 ', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) );2928 _deprecated_argument( __FUNCTION__, '3.1.0', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) ); 2929 2929 $args = array( 'numberposts' => absint( $args ) ); 2930 2930 } 2931 2931 -
wp-includes/query.php
146 146 global $wp_query; 147 147 148 148 if ( ! isset( $wp_query ) ) { 149 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );149 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 150 150 return false; 151 151 } 152 152 … … 167 167 global $wp_query; 168 168 169 169 if ( ! isset( $wp_query ) ) { 170 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );170 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 171 171 return false; 172 172 } 173 173 … … 188 188 global $wp_query; 189 189 190 190 if ( ! isset( $wp_query ) ) { 191 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );191 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 192 192 return false; 193 193 } 194 194 … … 212 212 global $wp_query; 213 213 214 214 if ( ! isset( $wp_query ) ) { 215 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );215 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 216 216 return false; 217 217 } 218 218 … … 236 236 global $wp_query; 237 237 238 238 if ( ! isset( $wp_query ) ) { 239 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );239 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 240 240 return false; 241 241 } 242 242 … … 260 260 global $wp_query; 261 261 262 262 if ( ! isset( $wp_query ) ) { 263 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );263 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 264 264 return false; 265 265 } 266 266 … … 289 289 global $wp_query; 290 290 291 291 if ( ! isset( $wp_query ) ) { 292 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );292 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 293 293 return false; 294 294 } 295 295 … … 309 309 global $wp_query; 310 310 311 311 if ( ! isset( $wp_query ) ) { 312 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );312 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 313 313 return false; 314 314 } 315 315 … … 329 329 global $wp_query; 330 330 331 331 if ( ! isset( $wp_query ) ) { 332 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );332 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 333 333 return false; 334 334 } 335 335 … … 350 350 global $wp_query; 351 351 352 352 if ( ! isset( $wp_query ) ) { 353 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );353 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 354 354 return false; 355 355 } 356 356 … … 370 370 global $wp_query; 371 371 372 372 if ( ! isset( $wp_query ) ) { 373 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );373 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 374 374 return false; 375 375 } 376 376 … … 399 399 global $wp_query; 400 400 401 401 if ( ! isset( $wp_query ) ) { 402 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );402 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 403 403 return false; 404 404 } 405 405 … … 428 428 global $wp_query; 429 429 430 430 if ( ! isset( $wp_query ) ) { 431 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );431 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 432 432 return false; 433 433 } 434 434 … … 448 448 global $wp_query; 449 449 450 450 if ( ! isset( $wp_query ) ) { 451 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );451 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 452 452 return false; 453 453 } 454 454 … … 475 475 global $wp_query; 476 476 477 477 if ( ! isset( $wp_query ) ) { 478 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );478 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 479 479 return false; 480 480 } 481 481 … … 495 495 global $wp_query; 496 496 497 497 if ( ! isset( $wp_query ) ) { 498 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );498 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 499 499 return false; 500 500 } 501 501 … … 515 515 global $wp_query; 516 516 517 517 if ( ! isset( $wp_query ) ) { 518 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );518 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 519 519 return false; 520 520 } 521 521 … … 535 535 global $wp_query; 536 536 537 537 if ( ! isset( $wp_query ) ) { 538 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );538 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 539 539 return false; 540 540 } 541 541 … … 555 555 global $wp_query; 556 556 557 557 if ( ! isset( $wp_query ) ) { 558 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );558 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 559 559 return false; 560 560 } 561 561 … … 584 584 global $wp_query; 585 585 586 586 if ( ! isset( $wp_query ) ) { 587 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );587 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 588 588 return false; 589 589 } 590 590 … … 611 611 global $wp_query; 612 612 613 613 if ( ! isset( $wp_query ) ) { 614 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );614 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 615 615 return false; 616 616 } 617 617 … … 631 631 global $wp_query; 632 632 633 633 if ( ! isset( $wp_query ) ) { 634 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );634 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 635 635 return false; 636 636 } 637 637 … … 651 651 global $wp_query; 652 652 653 653 if ( ! isset( $wp_query ) ) { 654 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );654 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 655 655 return false; 656 656 } 657 657 … … 671 671 global $wp_query; 672 672 673 673 if ( ! isset( $wp_query ) ) { 674 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );674 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 675 675 return false; 676 676 } 677 677 … … 691 691 global $wp_query; 692 692 693 693 if ( ! isset( $wp_query ) ) { 694 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );694 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 695 695 return false; 696 696 } 697 697 … … 711 711 global $wp_query; 712 712 713 713 if ( ! isset( $wp_query ) ) { 714 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1 ' );714 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 715 715 return false; 716 716 } 717 717 … … 737 737 '<code>is_main_query()</code>', 738 738 __( 'https://codex.wordpress.org/Function_Reference/is_main_query' ) 739 739 ); 740 _doing_it_wrong( __FUNCTION__, $message, '3.7 ' );740 _doing_it_wrong( __FUNCTION__, $message, '3.7.0' ); 741 741 } 742 742 743 743 global $wp_query; … … 2528 2528 $page = 1; 2529 2529 2530 2530 if ( isset( $q['caller_get_posts'] ) ) { 2531 _deprecated_argument( 'WP_Query', '3.1 ', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) );2531 _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); 2532 2532 if ( !isset( $q['ignore_sticky_posts'] ) ) 2533 2533 $q['ignore_sticky_posts'] = $q['caller_get_posts']; 2534 2534 } … … 4392 4392 * @return bool 4393 4393 */ 4394 4394 public function is_comments_popup() { 4395 _deprecated_function( __FUNCTION__, '4.5 ' );4395 _deprecated_function( __FUNCTION__, '4.5.0' ); 4396 4396 4397 4397 return false; 4398 4398 } -
wp-includes/registration-functions.php
4 4 * 5 5 * @package WordPress 6 6 */ 7 _deprecated_file( basename(__FILE__), '2.1 ', null, __( 'This file no longer needs to be included.' ) );7 _deprecated_file( basename(__FILE__), '2.1.0', null, __( 'This file no longer needs to be included.' ) ); -
wp-includes/registration.php
4 4 * 5 5 * @package WordPress 6 6 */ 7 _deprecated_file( basename(__FILE__), '3.1 ', null, __( 'This file no longer needs to be included.' ) );7 _deprecated_file( basename(__FILE__), '3.1.0', null, __( 'This file no longer needs to be included.' ) ); -
wp-includes/rss-functions.php
5 5 * @package WordPress 6 6 */ 7 7 8 _deprecated_file( basename(__FILE__), '2.1 ', WPINC . '/rss.php' );8 _deprecated_file( basename(__FILE__), '2.1.0', WPINC . '/rss.php' ); 9 9 require_once( ABSPATH . WPINC . '/rss.php' ); -
wp-includes/rss.php
16 16 /** 17 17 * Deprecated. Use SimplePie (class-simplepie.php) instead. 18 18 */ 19 _deprecated_file( basename( __FILE__ ), '3.0 ', WPINC . '/class-simplepie.php' );19 _deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/class-simplepie.php' ); 20 20 21 21 /** 22 22 * Fires before MagpieRSS is loaded, to optionally replace it. -
wp-includes/taxonomy.php
389 389 $args = array_merge( $defaults, $args ); 390 390 391 391 if ( empty( $taxonomy ) || strlen( $taxonomy ) > 32 ) { 392 _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2 ' );392 _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2.0' ); 393 393 return new WP_Error( 'taxonomy_length_invalid', __( 'Taxonomy names must be between 1 and 32 characters in length.' ) ); 394 394 } 395 395 -
wp-includes/theme-compat/comments.php
2 2 /** 3 3 * @package WordPress 4 4 * @subpackage Theme_Compat 5 * @deprecated 3.0 5 * @deprecated 3.0.0 6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version 8 8 * … … 10 10 _deprecated_file( 11 11 /* translators: %s: template name */ 12 12 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), 13 '3.0 ',13 '3.0.0', 14 14 null, 15 15 /* translators: %s: template name */ 16 16 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) -
wp-includes/theme-compat/footer.php
2 2 /** 3 3 * @package WordPress 4 4 * @subpackage Theme_Compat 5 * @deprecated 3.0 5 * @deprecated 3.0.0 6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version 8 8 */ … … 9 9 _deprecated_file( 10 10 /* translators: %s: template name */ 11 11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), 12 '3.0 ',12 '3.0.0', 13 13 null, 14 14 /* translators: %s: template name */ 15 15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) -
wp-includes/theme-compat/header.php
2 2 /** 3 3 * @package WordPress 4 4 * @subpackage Theme_Compat 5 * @deprecated 3.0 5 * @deprecated 3.0.0 6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version. 8 8 */ … … 9 9 _deprecated_file( 10 10 /* translators: %s: template name */ 11 11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), 12 '3.0 ',12 '3.0.0', 13 13 null, 14 14 /* translators: %s: template name */ 15 15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) -
wp-includes/theme-compat/sidebar.php
2 2 /** 3 3 * @package WordPress 4 4 * @subpackage Theme_Compat 5 * @deprecated 3.0 5 * @deprecated 3.0.0 6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version. 8 8 */ … … 9 9 _deprecated_file( 10 10 /* translators: %s: template name */ 11 11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), 12 '3.0 ',12 '3.0.0', 13 13 null, 14 14 /* translators: %s: template name */ 15 15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) -
wp-includes/theme.php
1719 1719 if ( did_action( 'wp_loaded' ) ) { 1720 1720 /* translators: 1: Theme support 2: hook name */ 1721 1721 _doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( __( 'Theme support for %1$s should be registered before the %2$s hook.' ), 1722 '<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1 ' );1722 '<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1.0' ); 1723 1723 1724 1724 return false; 1725 1725 } -
wp-includes/user.php
450 450 global $wpdb; 451 451 452 452 if ( !empty( $deprecated ) ) 453 _deprecated_argument( __FUNCTION__, '3.0 ' );453 _deprecated_argument( __FUNCTION__, '3.0.0' ); 454 454 455 455 if ( empty( $user ) ) 456 456 $user = get_current_user_id(); -
wp-includes/widgets/class-wp-widget-recent-comments.php
173 173 * @deprecated 4.4.0 Fragment caching was removed in favor of split queries. 174 174 */ 175 175 public function flush_widget_cache() { 176 _deprecated_function( __METHOD__, '4.4 ' );176 _deprecated_function( __METHOD__, '4.4.0' ); 177 177 } 178 178 } -
wp-includes/wp-db.php
1135 1135 */ 1136 1136 function _weak_escape( $string ) { 1137 1137 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 1138 _deprecated_function( __METHOD__, '3.6 ', 'wpdb::prepare() or esc_sql()' );1138 _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); 1139 1139 return addslashes( $string ); 1140 1140 } 1141 1141 … … 1209 1209 */ 1210 1210 public function escape( $data ) { 1211 1211 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 1212 _deprecated_function( __METHOD__, '3.6 ', 'wpdb::prepare() or esc_sql()' );1212 _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); 1213 1213 if ( is_array( $data ) ) { 1214 1214 foreach ( $data as $k => $v ) { 1215 1215 if ( is_array( $v ) ) … … 1278 1278 1279 1279 // This is not meant to be foolproof -- but it will catch obviously incorrect usage. 1280 1280 if ( strpos( $query, '%' ) === false ) { 1281 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9 ' );1281 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); 1282 1282 } 1283 1283 1284 1284 $args = func_get_args(); … … 3210 3210 * @return bool True if collation is supported, false if version does not 3211 3211 */ 3212 3212 public function supports_collation() { 3213 _deprecated_function( __FUNCTION__, '3.5 ', 'wpdb::has_cap( \'collation\' )' );3213 _deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' ); 3214 3214 return $this->has_cap( 'collation' ); 3215 3215 } 3216 3216 -
xmlrpc.php
95 95 * @param string $msg Information describing logging reason. 96 96 */ 97 97 function logIO( $io, $msg ) { 98 _deprecated_function( __FUNCTION__, '3.4 ', 'error_log()' );98 _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); 99 99 if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) 100 100 error_log( $io . ' - ' . $msg ); 101 101 } 102 No newline at end of file