Changeset 37985 for trunk/src/wp-admin/includes/deprecated.php
- Timestamp:
- 07/06/2016 12:39:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/deprecated.php
r37619 r37985 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(); … … 32 32 */ 33 33 function documentation_link() { 34 _deprecated_function( __FUNCTION__, '2.5 ' );34 _deprecated_function( __FUNCTION__, '2.5.0' ); 35 35 } 36 36 … … 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 } … … 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 } … … 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 ); … … 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 ); … … 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; … … 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) ); … … 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 } … … 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 } … … 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 … … 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 … … 215 215 **/ 216 216 function use_codepress() { 217 _deprecated_function( __FUNCTION__, '3.0 ' );217 _deprecated_function( __FUNCTION__, '3.0.0' ); 218 218 } 219 219 … … 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; … … 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; … … 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; … … 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; … … 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 ); … … 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; … … 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'); … … 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'); … … 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 } … … 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; … … 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 … … 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 … … 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 … … 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(); … … 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(); … … 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 … … 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 } … … 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 } … … 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 } … … 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 } … … 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 } … … 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 } … … 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 } … … 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 } … … 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 ) ) … … 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 ) ); … … 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 ) ); … … 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(); … … 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 … … 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 … … 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' ); … … 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(); … … 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 } … … 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 … … 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) ) … … 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) ) … … 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) ) … … 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 … … 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 … … 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; … … 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; … … 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.