Changeset 33671
- Timestamp:
- 08/20/2015 09:22:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/deprecated.php
r32990 r33671 15 15 /** 16 16 * @since 2.1.0 17 * @deprecated 2.1.0 18 * @deprecated Use wp_editor(). 17 * @deprecated 2.1.0 Use wp_editor() 19 18 * @see wp_editor() 20 19 */ … … 40 39 * 41 40 * @since 2.0.0 42 * @deprecated 3.0.0 43 * @deprecated Use wp_constrain_dimensions() 41 * @deprecated 3.0.0 Use wp_constrain_dimensions() 44 42 * @see wp_constrain_dimensions() 45 43 * … … 59 57 * 60 58 * @since 2.0.0 61 * @deprecated 3.5.0 62 * @deprecated Use wp_constrain_dimensions() 59 * @deprecated 3.5.0 Use wp_constrain_dimensions() 63 60 * @see wp_constrain_dimensions() 64 61 * … … 76 73 * 77 74 * @since 0.71 78 * @deprecated 2.6.0 79 * @deprecated Use wp_category_checklist() 75 * @deprecated 2.6.0 Use wp_category_checklist() 80 76 * @see wp_category_checklist() 81 77 * … … 94 90 * 95 91 * @since 2.1.0 96 * @deprecated 2.6.0 97 * @deprecated Use wp_link_category_checklist() 92 * @deprecated 2.6.0 Use wp_link_category_checklist() 98 93 * @see wp_link_category_checklist() 99 94 * … … 126 121 * 127 122 * @since 1.2.0 128 * @deprecated 3.0.0 129 * @deprecated Use wp_dropdown_categories() 123 * @deprecated 3.0.0 Use wp_dropdown_categories() 130 124 * @see wp_dropdown_categories() 131 125 * … … 163 157 * 164 158 * @since 2.7.0 165 * @deprecated 3.0.0 166 * @deprecated Use register_setting() 159 * @deprecated 3.0.0 Use register_setting() 167 160 * @see register_setting() 168 161 * … … 181 174 * 182 175 * @since 2.7.0 183 * @deprecated 3.0.0 184 * @deprecated Use unregister_setting() 176 * @deprecated 3.0.0 Use unregister_setting() 185 177 * @see unregister_setting() 186 178 * … … 227 219 228 220 /** 229 * @deprecated 3.1.0 221 * Get all user IDs. 222 * 223 * @deprecated 3.1.0 Use get_users() 230 224 * 231 225 * @return array List of user IDs. … … 244 238 245 239 /** 246 * @deprecated 3.1.0 240 * Gets author users who can edit posts. 241 * 242 * @deprecated 3.1.0 Use get_users() 247 243 * 248 244 * @param int $user_id User ID. … … 267 263 268 264 /** 269 * @deprecated 3.1.0 265 * Gets the IDs of any users who can edit posts. 266 * 267 * @deprecated 3.1.0 Use get_users() 270 268 * 271 269 * @param int $user_id User ID. … … 302 300 303 301 /** 304 * @deprecated 3.1.0 302 * Gets all users who are not authors. 303 * 304 * @deprecated 3.1.0 Use get_users() 305 305 */ 306 306 function get_nonauthor_user_ids() { … … 322 322 * 323 323 * @since 2.1.0 324 * @deprecated 3.1.0 324 * @deprecated 3.1.0 Use WP_User_Query 325 325 */ 326 326 class WP_User_Search { … … 671 671 * Retrieve editable posts from other users. 672 672 * 673 * @deprecated 3.1.0 673 * @deprecated 3.1.0 Use get_posts() 674 * @see get_posts() 674 675 * 675 676 * @param int $user_id User ID to not retrieve posts from. … … 704 705 * Retrieve drafts from other users. 705 706 * 706 * @deprecated 3.1.0 707 * @deprecated 3.1.0 Use get_posts() 708 * @see get_posts() 707 709 * 708 710 * @param int $user_id User ID. … … 718 720 * Retrieve pending review posts from other users. 719 721 * 720 * @deprecated 3.1.0 722 * @deprecated 3.1.0 Use get_posts() 723 * @see get_posts() 721 724 * 722 725 * @param int $user_id User ID. … … 733 736 * 734 737 * @since 3.0.0 735 * @deprecated 3.2.0 736 * @deprecated Use wp_dashboard_quick_press() 738 * @deprecated 3.2.0 Use wp_dashboard_quick_press() 737 739 * @see wp_dashboard_quick_press() 738 740 */ … … 743 745 744 746 /** 747 * Outputs the TinyMCE editor. 748 * 745 749 * @since 2.7.0 746 * @deprecated 3.3.0 747 * @deprecated Use wp_editor() 750 * @deprecated 3.3.0 Use wp_editor() 748 751 * @see wp_editor() 749 752 * … … 771 774 772 775 /** 773 * @deprecated 3.3.0 774 * @deprecated Use wp_editor() 776 * Preloads TinyMCE dialogs. 777 * 778 * @deprecated 3.3.0 Use wp_editor() 775 779 * @see wp_editor() 776 780 */ … … 780 784 781 785 /** 782 * @deprecated 3.3.0 783 * @deprecated Use wp_editor() 786 * Prints TinyMCE editor JS. 787 * 788 * @deprecated 3.3.0 Use wp_editor() 784 789 * @see wp_editor() 785 790 */ … … 789 794 790 795 /** 791 * @deprecated 3.3.0 792 * @deprecated Use wp_editor() 796 * Handles quicktags. 797 * 798 * @deprecated 3.3.0 Use wp_editor() 793 799 * @see wp_editor() 794 800 */ … … 801 807 * 802 808 * @since 2.8.0 803 * @deprecated 3.3.0 804 * @deprecated Use $current_screen->render_screen_layout() 809 * @deprecated 3.3.0 WP_Screen::render_screen_layout() 805 810 * @see WP_Screen::render_screen_layout() 806 811 */ … … 822 827 * 823 828 * @since 2.8.0 824 * @deprecated 3.3.0 825 * @deprecated Use $current_screen->render_per_page_options() 829 * @deprecated 3.3.0 Use WP_Screen::render_per_page_options() 826 830 * @see WP_Screen::render_per_page_options() 827 831 */ … … 843 847 * 844 848 * @since 2.7.0 845 * @deprecated 3.3.0 846 * @deprecated Use $current_screen->render_screen_meta() 849 * @deprecated 3.3.0 Use WP_Screen::render_screen_meta() 847 850 * @see WP_Screen::render_screen_meta() 848 851 */ … … 856 859 * 857 860 * @since 2.7.0 858 * @deprecated 3.2.0 861 * @deprecated 3.2.0 Use WP_Admin_Bar 862 * @see WP_Admin_Bar 859 863 */ 860 864 function favorite_actions() { … … 862 866 } 863 867 868 /** 869 * Handles uploading an image. 870 * 871 * @deprecated 3.3.0 Use wp_media_upload_handler() 872 * @see wp_media_upload_handler() 873 * 874 * @return null|string 875 */ 864 876 function media_upload_image() { 865 877 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); … … 867 879 } 868 880 881 /** 882 * Handles uploading an audio file. 883 * 884 * @deprecated 3.3.0 Use wp_media_upload_handler() 885 * @see wp_media_upload_handler() 886 * 887 * @return null|string 888 */ 869 889 function media_upload_audio() { 870 890 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); … … 872 892 } 873 893 894 /** 895 * Handles uploading a video file. 896 * 897 * @deprecated 3.3.0 Use wp_media_upload_handler() 898 * @see wp_media_upload_handler() 899 * 900 * @return null|string 901 */ 874 902 function media_upload_video() { 875 903 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); … … 877 905 } 878 906 907 /** 908 * Handles uploading a generic file. 909 * 910 * @deprecated 3.3.0 Use wp_media_upload_handler() 911 * @see wp_media_upload_handler() 912 * 913 * @return null|string 914 */ 879 915 function media_upload_file() { 880 916 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); … … 882 918 } 883 919 920 /** 921 * Handles retrieving the insert-from-URL form for an image. 922 * 923 * @deprecated 3.3.0 Use wp_media_insert_url_form() 924 * @see wp_media_insert_url_form() 925 * 926 * @return string 927 */ 884 928 function type_url_form_image() { 885 929 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); … … 887 931 } 888 932 933 /** 934 * Handles retrieving the insert-from-URL form for an audio file. 935 * 936 * @deprecated 3.3.0 Use wp_media_insert_url_form() 937 * @see wp_media_insert_url_form() 938 * 939 * @return string 940 */ 889 941 function type_url_form_audio() { 890 942 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); … … 892 944 } 893 945 946 /** 947 * Handles retrieving the insert-from-URL form for a video file. 948 * 949 * @deprecated 3.3.0 Use wp_media_insert_url_form() 950 * @see wp_media_insert_url_form() 951 * 952 * @return string 953 */ 894 954 function type_url_form_video() { 895 955 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); … … 897 957 } 898 958 959 /** 960 * Handles retrieving the insert-from-URL form for a generic file. 961 * 962 * @deprecated 3.3.0 Use wp_media_insert_url_form() 963 * @see wp_media_insert_url_form() 964 * 965 * @return string 966 */ 899 967 function type_url_form_file() { 900 968 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); … … 908 976 * 909 977 * @since 2.7.0 910 * @deprecated 3.3.0 911 * @deprecated Use get_current_screen()->add_help_tab() 912 * @see WP_Screen 978 * @deprecated 3.3.0 Use WP_Screen::add_help_tab() 979 * @see WP_Screen::add_help_tab() 913 980 * 914 981 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions. … … 928 995 * 929 996 * @since 3.0.0 930 * @deprecated 3.4.0 931 * @deprecated Use wp_get_themes() 997 * @deprecated 3.4.0 Use wp_get_themes() 932 998 * @see wp_get_themes() 933 999 * … … 948 1014 949 1015 /** 950 * {@internal Missing Short Description}}1016 * Retrieves a list of broken themes. 951 1017 * 952 1018 * @since 1.5.0 953 * @deprecated 3.4.0 1019 * @deprecated 3.4.0 Use wp_get_themes() 1020 * @see wp_get_themes() 954 1021 * 955 1022 * @return array … … 972 1039 973 1040 /** 974 * {@internal Missing Short Description}}1041 * Retrieves information on the current active theme. 975 1042 * 976 1043 * @since 2.0.0 977 * @deprecated 3.4.0 1044 * @deprecated 3.4.0 Use wp_get_theme() 1045 * @see wp_get_theme() 978 1046 * 979 1047 * @return WP_Theme … … 986 1054 987 1055 /** 988 * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed. 1056 * This was once used to display an 'Insert into Post' button. 1057 * 1058 * Now it is deprecated and stubbed. 989 1059 * 990 1060 * @deprecated 3.5.0 … … 995 1065 996 1066 /** 997 * This was once used to display a media button. Now it is deprecated and stubbed. 1067 * This was once used to display a media button. 1068 * 1069 * Now it is deprecated and stubbed. 998 1070 * 999 1071 * @deprecated 3.5.0 … … 1004 1076 1005 1077 /** 1006 * Get an existing post and format it for editing.1078 * Gets an existing post and format it for editing. 1007 1079 * 1008 1080 * @since 2.0.0 1009 * @deprecated 3.5.0 1081 * @deprecated 3.5.0 Use get_post() 1082 * @see get_post() 1010 1083 * 1011 1084 * @param int $id … … 1019 1092 1020 1093 /** 1021 * Get the default page information to use.1094 * Gets the default page information to use. 1022 1095 * 1023 1096 * @since 2.5.0 1024 * @deprecated 3.5.0 1025 * @ deprecated Use get_default_post_to_edit()1097 * @deprecated 3.5.0 Use get_default_post_to_edit() 1098 * @see get_default_post_to_edit() 1026 1099 * 1027 1100 * @return WP_Post Post object containing all the default post data as attributes … … 1039 1112 * 1040 1113 * @since 1.2.0 1041 * @deprecated 3.5.0 1042 * @deprecated Use image_resize() 1114 * @deprecated 3.5.0 Use image_resize() 1043 1115 * @see image_resize() 1044 1116 * … … 1072 1144 * 1073 1145 * @since 2.7.0 1074 * @deprecated 3.7.0 1146 * @deprecated 3.7.0 Use Core_Upgrader 1075 1147 * @see Core_Upgrader 1076 1148 */ … … 1095 1167 * 1096 1168 * @since 2.5.0 1097 * @deprecated 3.7.0 1169 * @deprecated 3.7.0 Use Plugin_Upgrader 1098 1170 * @see Plugin_Upgrader 1099 1171 */ … … 1117 1189 * 1118 1190 * @since 2.7.0 1119 * @deprecated 3.7.0 1191 * @deprecated 3.7.0 Use Theme_Upgrader 1120 1192 * @see Theme_Upgrader 1121 1193 */ … … 1134 1206 * This was once used to display attachment links. Now it is deprecated and stubbed. 1135 1207 * 1136 * {@internal Missing Short Description}}1137 *1138 1208 * @since 2.0.0 1139 1209 * @deprecated 3.7.0 … … 1145 1215 } 1146 1216 1147 /** #@+1217 /** 1148 1218 * Displays a screen icon. 1149 1219 * 1150 1220 * @since 2.7.0 1151 1221 * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output. 1152 * @deprecated 3.8.0 1222 * @deprecated 3.8.0 Use get_screen_icon() 1223 * @see get_screen_icon() 1153 1224 */ 1154 1225 function screen_icon() { 1155 1226 echo get_screen_icon(); 1156 1227 } 1228 1229 /** 1230 * Retrieves the screen icon (no longer used in 3.8+). 1231 * 1232 * @deprecated 3.8.0 1233 * 1234 * @return string 1235 */ 1157 1236 function get_screen_icon() { 1158 1237 return '<!-- Screen icons are no longer used as of WordPress 3.8. -->'; 1159 1238 } 1160 /**#@-*/ 1161 1162 /**#@+ 1239 1240 /** 1163 1241 * Deprecated dashboard widget controls. 1164 1242 * … … 1167 1245 */ 1168 1246 function wp_dashboard_incoming_links_output() {} 1247 1248 /** 1249 * Deprecated dashboard secondary output. 1250 * 1251 * @deprecated 3.8.0 1252 */ 1169 1253 function wp_dashboard_secondary_output() {} 1170 /**#@-*/ 1171 1172 /**#@+ 1254 1255 /** 1173 1256 * Deprecated dashboard widget controls. 1174 1257 * … … 1177 1260 */ 1178 1261 function wp_dashboard_incoming_links() {} 1262 1263 /** 1264 * Deprecated dashboard incoming links control. 1265 * 1266 * @deprecated 3.8.0 1267 */ 1179 1268 function wp_dashboard_incoming_links_control() {} 1269 1270 /** 1271 * Deprecated dashboard plugins control. 1272 * 1273 * @deprecated 3.8.0 1274 */ 1180 1275 function wp_dashboard_plugins() {} 1276 1277 /** 1278 * Deprecated dashboard primary control. 1279 * 1280 * @deprecated 3.8.0 1281 */ 1181 1282 function wp_dashboard_primary_control() {} 1283 1284 /** 1285 * Deprecated dashboard recent comments control. 1286 * 1287 * @deprecated 3.8.0 1288 */ 1182 1289 function wp_dashboard_recent_comments_control() {} 1290 1291 /** 1292 * Deprecated dashboard secondary section. 1293 * 1294 * @deprecated 3.8.0 1295 */ 1183 1296 function wp_dashboard_secondary() {} 1297 1298 /** 1299 * Deprecated dashboard secondary control. 1300 * 1301 * @deprecated 3.8.0 1302 */ 1184 1303 function wp_dashboard_secondary_control() {} 1185 /**#@-*/1186 1304 1187 1305 /**
Note: See TracChangeset
for help on using the changeset viewer.