From fbcae372f3e2cf0fd17ff309f2321ef9f9b0e417 Mon Sep 17 00:00:00 2001
Date: Thu, 22 Jun 2017 00:50:35 +0200
Subject: [PATCH] Add missing `_deprecated_function()` function calls to
various functions
* Add missing `_deprecated_function()` call for `funky_javascript_callback()`
* Add missing `_deprecated_function()` call for `_save_post_hook()`.
* Add missing `_deprecated_function()` call for `default_topic_count_text()`.
* Add missing `_deprecated_function()` call for `screen_meta()`.
* Add missing `_deprecated_function()` call for two screen icon related functions
* Add missing `_deprecated_function()` call for nine wp_dashboard related functions
* Add missing `_deprecated_function()` call for `wp_ajax_wp_fullscreen_save_post()`.
* Add missing `_deprecated_function()` call for `ms_deprecated_blogs_file()`
---
src/wp-admin/includes/ajax-actions.php | 2 ++
src/wp-admin/includes/deprecated.php | 39 +++++++++++++++++++++++++--------
src/wp-admin/includes/ms-deprecated.php | 4 +++-
src/wp-includes/deprecated.php | 6 ++++-
4 files changed, 40 insertions(+), 11 deletions(-)
diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index e132ac8..4fc52c4 100644
a
|
b
|
function wp_ajax_time_format() { |
2307 | 2307 | * @deprecated 4.3.0 |
2308 | 2308 | */ |
2309 | 2309 | function wp_ajax_wp_fullscreen_save_post() { |
| 2310 | _deprecated_function( __FUNCTION__, '4.3.0' ); |
| 2311 | |
2310 | 2312 | $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0; |
2311 | 2313 | |
2312 | 2314 | $post = null; |
diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php
index a9e0e6f..b0a7eae 100644
a
|
b
|
function screen_options( $screen ) { |
842 | 842 | * @see WP_Screen::render_screen_meta() |
843 | 843 | */ |
844 | 844 | function screen_meta( $screen ) { |
| 845 | _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_meta()' ); |
845 | 846 | $current_screen = get_current_screen(); |
846 | 847 | $current_screen->render_screen_meta(); |
847 | 848 | } |
… |
… |
function the_attachment_links( $id = false ) { |
1215 | 1216 | * @see get_screen_icon() |
1216 | 1217 | */ |
1217 | 1218 | function screen_icon() { |
| 1219 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
1218 | 1220 | echo get_screen_icon(); |
1219 | 1221 | } |
1220 | 1222 | |
… |
… |
function screen_icon() { |
1226 | 1228 | * @return string |
1227 | 1229 | */ |
1228 | 1230 | function get_screen_icon() { |
| 1231 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
1229 | 1232 | return '<!-- Screen icons are no longer used as of WordPress 3.8. -->'; |
1230 | 1233 | } |
1231 | 1234 | |
… |
… |
function get_screen_icon() { |
1235 | 1238 | * @since 2.5.0 |
1236 | 1239 | * @deprecated 3.8.0 |
1237 | 1240 | */ |
1238 | | function wp_dashboard_incoming_links_output() {} |
| 1241 | function wp_dashboard_incoming_links_output() { |
| 1242 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1243 | } |
1239 | 1244 | |
1240 | 1245 | /** |
1241 | 1246 | * Deprecated dashboard secondary output. |
1242 | 1247 | * |
1243 | 1248 | * @deprecated 3.8.0 |
1244 | 1249 | */ |
1245 | | function wp_dashboard_secondary_output() {} |
| 1250 | function wp_dashboard_secondary_output() { |
| 1251 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1252 | } |
1246 | 1253 | |
1247 | 1254 | /** |
1248 | 1255 | * Deprecated dashboard widget controls. |
… |
… |
function wp_dashboard_secondary_output() {} |
1250 | 1257 | * @since 2.7.0 |
1251 | 1258 | * @deprecated 3.8.0 |
1252 | 1259 | */ |
1253 | | function wp_dashboard_incoming_links() {} |
| 1260 | function wp_dashboard_incoming_links() { |
| 1261 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1262 | } |
1254 | 1263 | |
1255 | 1264 | /** |
1256 | 1265 | * Deprecated dashboard incoming links control. |
1257 | 1266 | * |
1258 | 1267 | * @deprecated 3.8.0 |
1259 | 1268 | */ |
1260 | | function wp_dashboard_incoming_links_control() {} |
| 1269 | function wp_dashboard_incoming_links_control() { |
| 1270 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1271 | } |
1261 | 1272 | |
1262 | 1273 | /** |
1263 | 1274 | * Deprecated dashboard plugins control. |
1264 | 1275 | * |
1265 | 1276 | * @deprecated 3.8.0 |
1266 | 1277 | */ |
1267 | | function wp_dashboard_plugins() {} |
| 1278 | function wp_dashboard_plugins() { |
| 1279 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1280 | } |
1268 | 1281 | |
1269 | 1282 | /** |
1270 | 1283 | * Deprecated dashboard primary control. |
1271 | 1284 | * |
1272 | 1285 | * @deprecated 3.8.0 |
1273 | 1286 | */ |
1274 | | function wp_dashboard_primary_control() {} |
| 1287 | function wp_dashboard_primary_control() { |
| 1288 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1289 | } |
1275 | 1290 | |
1276 | 1291 | /** |
1277 | 1292 | * Deprecated dashboard recent comments control. |
1278 | 1293 | * |
1279 | 1294 | * @deprecated 3.8.0 |
1280 | 1295 | */ |
1281 | | function wp_dashboard_recent_comments_control() {} |
| 1296 | function wp_dashboard_recent_comments_control() { |
| 1297 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1298 | } |
1282 | 1299 | |
1283 | 1300 | /** |
1284 | 1301 | * Deprecated dashboard secondary section. |
1285 | 1302 | * |
1286 | 1303 | * @deprecated 3.8.0 |
1287 | 1304 | */ |
1288 | | function wp_dashboard_secondary() {} |
| 1305 | function wp_dashboard_secondary() { |
| 1306 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1307 | } |
1289 | 1308 | |
1290 | 1309 | /** |
1291 | 1310 | * Deprecated dashboard secondary control. |
1292 | 1311 | * |
1293 | 1312 | * @deprecated 3.8.0 |
1294 | 1313 | */ |
1295 | | function wp_dashboard_secondary_control() {} |
| 1314 | function wp_dashboard_secondary_control() { |
| 1315 | _deprecated_function( __FUNCTION__, '3.8.0' ); |
| 1316 | } |
1296 | 1317 | |
1297 | 1318 | /** |
1298 | 1319 | * Display plugins text for the WordPress news widget. |
diff --git a/src/wp-admin/includes/ms-deprecated.php b/src/wp-admin/includes/ms-deprecated.php
index 81546bd..c4f2abe 100644
a
|
b
|
function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { |
102 | 102 | * |
103 | 103 | * @deprecated 3.5.0 |
104 | 104 | */ |
105 | | function ms_deprecated_blogs_file() {} |
| 105 | function ms_deprecated_blogs_file() { |
| 106 | _deprecated_function( __FUNCTION__, '3.5.0' ); |
| 107 | } |
diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
index 027194a..a3ce393 100644
a
|
b
|
function get_usernumposts( $userid ) { |
2437 | 2437 | * @return string An HTML entity |
2438 | 2438 | */ |
2439 | 2439 | function funky_javascript_callback($matches) { |
| 2440 | _deprecated_function( __FUNCTION__, '3.0.0' ); |
2440 | 2441 | return "&#".base_convert($matches[1],16,10).";"; |
2441 | 2442 | } |
2442 | 2443 | |
… |
… |
function user_pass_ok($user_login, $user_pass) { |
3280 | 3281 | * @since 2.3.0 |
3281 | 3282 | * @deprecated 3.5.0 |
3282 | 3283 | */ |
3283 | | function _save_post_hook() {} |
| 3284 | function _save_post_hook() { |
| 3285 | _deprecated_function( __FUNCTION__, '3.5.0' ); |
| 3286 | } |
3284 | 3287 | |
3285 | 3288 | /** |
3286 | 3289 | * Check if the installed version of GD supports particular image type |
… |
… |
function rich_edit_exists() { |
3392 | 3395 | * @return int Number of topics. |
3393 | 3396 | */ |
3394 | 3397 | function default_topic_count_text( $count ) { |
| 3398 | _deprecated_function( __FUNCTION__, '3.9.0' ); |
3395 | 3399 | return $count; |
3396 | 3400 | } |
3397 | 3401 | |