78 * @since 0.71 |
77 * @since 0.71 |
79 * @deprecated 2.6.0 |
78 * @deprecated 2.6.0 |
80 * @deprecated Use wp_category_checklist() |
79 * @deprecated Use wp_category_checklist() |
81 * @see wp_category_checklist() |
80 * @see wp_category_checklist() |
82 * |
81 * |
83 * @param unknown_type $default |
82 * @param int $default |
84 * @param unknown_type $parent |
83 * @param int $parent |
85 * @param unknown_type $popular_ids |
84 * @param array $popular_ids |
86 */ |
85 */ |
87 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { |
86 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { |
88 _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' ); |
87 _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' ); |
89 global $post_ID; |
88 global $post_ID; |
90 wp_category_checklist( $post_ID ); |
89 wp_category_checklist( $post_ID ); |
128 * @since 1.2.0 |
127 * @since 1.2.0 |
129 * @deprecated 3.0.0 |
128 * @deprecated 3.0.0 |
130 * @deprecated Use wp_dropdown_categories() |
129 * @deprecated Use wp_dropdown_categories() |
131 * @see wp_dropdown_categories() |
130 * @see wp_dropdown_categories() |
132 * |
131 * |
133 * @param unknown_type $currentcat |
132 * @param int $currentcat |
134 * @param unknown_type $currentparent |
133 * @param int $currentparent |
135 * @param unknown_type $parent |
134 * @param int $parent |
136 * @param unknown_type $level |
135 * @param int $level |
137 * @param unknown_type $categories |
136 * @param array $categories |
138 * @return unknown |
137 * @return bool|null |
139 */ |
138 */ |
140 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { |
139 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { |
141 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); |
140 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); |
142 if (!$categories ) |
141 if (!$categories ) |
143 $categories = get_categories( array('hide_empty' => 0) ); |
142 $categories = get_categories( array('hide_empty' => 0) ); |
168 * @see register_setting() |
167 * @see register_setting() |
169 * |
168 * |
170 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. |
169 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. |
171 * Default whitelisted option key names include "general," "discussion," and "reading," among others. |
170 * Default whitelisted option key names include "general," "discussion," and "reading," among others. |
172 * @param string $option_name The name of an option to sanitize and save. |
171 * @param string $option_name The name of an option to sanitize and save. |
173 * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value. |
172 * @param callable $sanitize_callback A callback function that sanitizes the option's value. |
174 * @return unknown |
|
175 */ |
173 */ |
176 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { |
174 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { |
177 _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); |
175 _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); |
178 return register_setting( $option_group, $option_name, $sanitize_callback ); |
176 register_setting( $option_group, $option_name, $sanitize_callback ); |
179 } |
177 } |
180 |
178 |
181 /** |
179 /** |
182 * Unregister a setting |
180 * Unregister a setting |
183 * |
181 * |
184 * @since 2.7.0 |
182 * @since 2.7.0 |
185 * @deprecated 3.0.0 |
183 * @deprecated 3.0.0 |
186 * @deprecated Use unregister_setting() |
184 * @deprecated Use unregister_setting() |
187 * @see unregister_setting() |
185 * @see unregister_setting() |
188 * |
186 * |
189 * @param unknown_type $option_group |
187 * @param string $option_group |
190 * @param unknown_type $option_name |
188 * @param string $option_name |
191 * @param unknown_type $sanitize_callback |
189 * @param callable $sanitize_callback |
192 * @return unknown |
|
193 */ |
190 */ |
194 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { |
191 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { |
195 _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); |
192 _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); |
196 return unregister_setting( $option_group, $option_name, $sanitize_callback ); |
193 unregister_setting( $option_group, $option_name, $sanitize_callback ); |
197 } |
194 } |
198 |
195 |
199 /** |
196 /** |
200 * Determines the language to use for CodePress syntax highlighting. |
197 * Determines the language to use for CodePress syntax highlighting. |
201 * |
198 * |
204 * |
201 * |
205 * @param string $filename |
202 * @param string $filename |
206 **/ |
203 **/ |
207 function codepress_get_lang( $filename ) { |
204 function codepress_get_lang( $filename ) { |
208 _deprecated_function( __FUNCTION__, '3.0' ); |
205 _deprecated_function( __FUNCTION__, '3.0' ); |
209 return; |
206 } |
210 } |
207 |
211 |
208 /** |
212 /** |
209 * Adds JavaScript required to make CodePress work on the theme/plugin editors. |
213 * Adds Javascript required to make CodePress work on the theme/plugin editors. |
|
214 * |
210 * |
215 * @since 2.8.0 |
211 * @since 2.8.0 |
216 * @deprecated 3.0.0 |
212 * @deprecated 3.0.0 |
217 **/ |
213 **/ |
218 function codepress_footer_js() { |
214 function codepress_footer_js() { |
219 _deprecated_function( __FUNCTION__, '3.0' ); |
215 _deprecated_function( __FUNCTION__, '3.0' ); |
220 return; |
|
221 } |
216 } |
222 |
217 |
223 /** |
218 /** |
224 * Determine whether to use CodePress. |
219 * Determine whether to use CodePress. |
225 * |
220 * |
226 * @since 2.8.0 |
221 * @since 2.8.0 |
227 * @deprecated 3.0.0 |
222 * @deprecated 3.0.0 |
228 **/ |
223 **/ |
229 function use_codepress() { |
224 function use_codepress() { |
230 _deprecated_function( __FUNCTION__, '3.0' ); |
225 _deprecated_function( __FUNCTION__, '3.0' ); |
231 return; |
|
232 } |
226 } |
233 |
227 |
234 /** |
228 /** |
235 * @deprecated 3.1.0 |
229 * @deprecated 3.1.0 |
236 * |
230 * |
850 function favorite_actions() { |
844 function favorite_actions() { |
851 _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' ); |
845 _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' ); |
852 } |
846 } |
853 |
847 |
854 function media_upload_image() { |
848 function media_upload_image() { |
855 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
849 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
856 return wp_media_upload_handler(); |
850 return wp_media_upload_handler(); |
857 } |
851 } |
858 |
852 |
859 function media_upload_audio() { |
853 function media_upload_audio() { |
860 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
854 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
861 return wp_media_upload_handler(); |
855 return wp_media_upload_handler(); |
862 } |
856 } |
863 |
857 |
864 function media_upload_video() { |
858 function media_upload_video() { |
865 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
859 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
866 return wp_media_upload_handler(); |
860 return wp_media_upload_handler(); |
867 } |
861 } |
868 |
862 |
869 function media_upload_file() { |
863 function media_upload_file() { |
870 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
864 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); |
871 return wp_media_upload_handler(); |
865 return wp_media_upload_handler(); |
872 } |
866 } |
873 |
867 |
874 function type_url_form_image() { |
868 function type_url_form_image() { |
875 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); |
869 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); |
876 return wp_media_insert_url_form( 'image' ); |
870 return wp_media_insert_url_form( 'image' ); |
877 } |
871 } |
878 |
872 |
879 function type_url_form_audio() { |
873 function type_url_form_audio() { |
880 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); |
874 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); |
881 return wp_media_insert_url_form( 'audio' ); |
875 return wp_media_insert_url_form( 'audio' ); |
882 } |
876 } |
883 |
877 |
884 function type_url_form_video() { |
878 function type_url_form_video() { |
885 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); |
879 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); |
886 return wp_media_insert_url_form( 'video' ); |
880 return wp_media_insert_url_form( 'video' ); |
887 } |
881 } |
888 |
882 |
889 function type_url_form_file() { |
883 function type_url_form_file() { |
890 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); |
884 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); |
891 return wp_media_insert_url_form( 'file' ); |
885 return wp_media_insert_url_form( 'file' ); |
892 } |
886 } |
893 |
887 |
894 /** |
888 /** |
895 * Add contextual help text for a page. |
889 * Add contextual help text for a page. |
1060 * Deprecated in favor of instantating a Core_Upgrader instance directly, |
1054 * Deprecated in favor of instantating a Core_Upgrader instance directly, |
1061 * and calling the 'upgrade' method. |
1055 * and calling the 'upgrade' method. |
1062 * |
1056 * |
1063 * @since 2.7.0 |
1057 * @since 2.7.0 |
1064 * @deprecated 3.7.0 |
1058 * @deprecated 3.7.0 |
|
1059 * @see Core_Upgrader |
1065 */ |
1060 */ |
1066 function wp_update_core($current, $feedback = '') { |
1061 function wp_update_core($current, $feedback = '') { |
1067 _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' ); |
1062 _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' ); |
1068 |
1063 |
1069 if ( !empty($feedback) ) |
1064 if ( !empty($feedback) ) |
1070 add_filter('update_feedback', $feedback); |
1065 add_filter('update_feedback', $feedback); |
1071 |
1066 |
1072 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1067 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
1073 $upgrader = new Core_Upgrader(); |
1068 $upgrader = new Core_Upgrader(); |
1074 return $upgrader->upgrade($current); |
1069 return $upgrader->upgrade($current); |
1075 |
1070 |
1076 } |
1071 } |
1077 |
1072 |
1082 * and calling the 'upgrade' method. |
1077 * and calling the 'upgrade' method. |
1083 * Unused since 2.8.0. |
1078 * Unused since 2.8.0. |
1084 * |
1079 * |
1085 * @since 2.5.0 |
1080 * @since 2.5.0 |
1086 * @deprecated 3.7.0 |
1081 * @deprecated 3.7.0 |
|
1082 * @see Plugin_Upgrader |
1087 */ |
1083 */ |
1088 function wp_update_plugin($plugin, $feedback = '') { |
1084 function wp_update_plugin($plugin, $feedback = '') { |
1089 _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' ); |
1085 _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' ); |
1090 |
1086 |
1091 if ( !empty($feedback) ) |
1087 if ( !empty($feedback) ) |
1092 add_filter('update_feedback', $feedback); |
1088 add_filter('update_feedback', $feedback); |
1093 |
1089 |
1094 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1090 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
1095 $upgrader = new Plugin_Upgrader(); |
1091 $upgrader = new Plugin_Upgrader(); |
1096 return $upgrader->upgrade($plugin); |
1092 return $upgrader->upgrade($plugin); |
1097 } |
1093 } |
1098 |
1094 |
1099 /** |
1095 /** |
1100 * This was once used to kick-off the Plugin Updater. |
1096 * This was once used to kick-off the Theme Updater. |
1101 * |
1097 * |
1102 * Deprecated in favor of instantating a Plugin_Upgrader instance directly, |
1098 * Deprecated in favor of instantating a Theme_Upgrader instance directly, |
1103 * and calling the 'upgrade' method. |
1099 * and calling the 'upgrade' method. |
1104 * Unused since 2.8.0. |
1100 * Unused since 2.8.0. |
1105 * |
1101 * |
1106 * @since 2.7.0 |
1102 * @since 2.7.0 |
1107 * @deprecated 3.7.0 |
1103 * @deprecated 3.7.0 |
|
1104 * @see Theme_Upgrader |
1108 */ |
1105 */ |
1109 function wp_update_theme($theme, $feedback = '') { |
1106 function wp_update_theme($theme, $feedback = '') { |
1110 _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' ); |
1107 _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' ); |
1111 |
1108 |
1112 if ( !empty($feedback) ) |
1109 if ( !empty($feedback) ) |
1113 add_filter('update_feedback', $feedback); |
1110 add_filter('update_feedback', $feedback); |
1114 |
1111 |
1115 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1112 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
1116 $upgrader = new Theme_Upgrader(); |
1113 $upgrader = new Theme_Upgrader(); |
1117 return $upgrader->upgrade($theme); |
1114 return $upgrader->upgrade($theme); |
1118 } |
1115 } |
1119 |
1116 |
1120 /** |
1117 /** |
1123 * {@internal Missing Short Description}} |
1120 * {@internal Missing Short Description}} |
1124 * |
1121 * |
1125 * @since 2.0.0 |
1122 * @since 2.0.0 |
1126 * @deprecated 3.7.0 |
1123 * @deprecated 3.7.0 |
1127 * |
1124 * |
1128 * @param unknown_type $id |
1125 * @param int|bool $id |
1129 * @return unknown |
|
1130 */ |
1126 */ |
1131 function the_attachment_links( $id = false ) { |
1127 function the_attachment_links( $id = false ) { |
1132 _deprecated_function( __FUNCTION__, '3.7' ); |
1128 _deprecated_function( __FUNCTION__, '3.7' ); |
1133 } |
1129 } |
|
1130 |
|
1131 /**#@+ |
|
1132 * Displays a screen icon. |
|
1133 * |
|
1134 * @since 2.7.0 |
|
1135 * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output. |
|
1136 * @deprecated 3.8.0 |
|
1137 */ |
|
1138 function screen_icon() { |
|
1139 echo get_screen_icon(); |
|
1140 } |
|
1141 function get_screen_icon() { |
|
1142 return '<!-- Screen icons are no longer used as of WordPress 3.8. -->'; |
|
1143 } |
|
1144 /**#@-*/ |
|
1145 |
|
1146 /**#@+ |
|
1147 * Deprecated dashboard widget controls. |
|
1148 * |
|
1149 * @since 2.5.0 |
|
1150 * @deprecated 3.8.0 |
|
1151 */ |
|
1152 function wp_dashboard_incoming_links_output() {} |
|
1153 function wp_dashboard_secondary_output() {} |
|
1154 /**#@-*/ |
|
1155 |
|
1156 /**#@+ |
|
1157 * Deprecated dashboard widget controls. |
|
1158 * |
|
1159 * @since 2.7.0 |
|
1160 * @deprecated 3.8.0 |
|
1161 */ |
|
1162 function wp_dashboard_incoming_links() {} |
|
1163 function wp_dashboard_incoming_links_control() {} |
|
1164 function wp_dashboard_plugins() {} |
|
1165 function wp_dashboard_primary_control() {} |
|
1166 function wp_dashboard_recent_comments_control() {} |
|
1167 function wp_dashboard_secondary() {} |
|
1168 function wp_dashboard_secondary_control() {} |
|
1169 /**#@-*/ |
|
1170 |
|
1171 /** |
|
1172 * This was once used to move child posts to a new parent. |
|
1173 * |
|
1174 * @since 2.3.0 |
|
1175 * @deprecated 3.9.0 |
|
1176 * @access private |
|
1177 * |
|
1178 * @param int $old_ID |
|
1179 * @param int $new_ID |
|
1180 */ |
|
1181 function _relocate_children( $old_ID, $new_ID ) { |
|
1182 _deprecated_function( __FUNCTION__, '3.9' ); |
|
1183 } |