Deprecated Functions in debug.log with 5.9
-
After upgrading to WordPress 5.9, my debug.log on a development site is getting spammed with the following. Not a huge priority, but just pointing out since it should be a quick fix.
[29-Jan-2022 00:35:01 UTC] PHP Deprecated: WP_User_Query was called with an argument that is <strong>deprecated</strong> since version 5.9.0! <code>who</code> is deprecated. Use <code>capability</code> instead. in \app\public\wp-includes\functions.php on line 5600 [29-Jan-2022 00:35:01 UTC] PHP Stack trace: [29-Jan-2022 00:35:01 UTC] PHP 1. {main}() \app\public\wp-admin\admin.php:0 [29-Jan-2022 00:35:01 UTC] PHP 2. do_action() \app\public\wp-admin\admin.php:259 [29-Jan-2022 00:35:01 UTC] PHP 3. WP_Hook->do_action() \app\public\wp-includes\plugin.php:474 [29-Jan-2022 00:35:01 UTC] PHP 4. WP_Hook->apply_filters() \app\public\wp-includes\class-wp-hook.php:331 [29-Jan-2022 00:35:01 UTC] PHP 5. NestedPages\Entities\Listing\Listing->listPosts() \app\public\wp-includes\class-wp-hook.php:307 [29-Jan-2022 00:35:01 UTC] PHP 6. include() \app\public\wp-content\plugins\wp-nested-pages\app\Entities\Listing\Listing.php:280 [29-Jan-2022 00:35:01 UTC] PHP 7. NestedPages\Entities\Listing\Listing->getPosts() \app\public\wp-content\plugins\wp-nested-pages\app\Views\listing.php:98 [29-Jan-2022 00:35:01 UTC] PHP 8. NestedPages\Entities\Listing\Listing->listPostLevel() \app\public\wp-content\plugins\wp-nested-pages\app\Entities\Listing\Listing.php:369 [29-Jan-2022 00:35:01 UTC] PHP 9. NestedPages\Entities\Listing\Listing->listOpening() \app\public\wp-content\plugins\wp-nested-pages\app\Entities\Listing\Listing.php:392 [29-Jan-2022 00:35:01 UTC] PHP 10. include() \app\public\wp-content\plugins\wp-nested-pages\app\Entities\Listing\Listing.php:330 [29-Jan-2022 00:35:01 UTC] PHP 11. wp_dropdown_users() \app\public\wp-content\plugins\wp-nested-pages\app\Views\partials\bulk-edit.php:37 [29-Jan-2022 00:35:01 UTC] PHP 12. get_users() \app\public\wp-includes\user.php:1495 [29-Jan-2022 00:35:01 UTC] PHP 13. WP_User_Query->__construct() \app\public\wp-includes\user.php:763 [29-Jan-2022 00:35:01 UTC] PHP 14. WP_User_Query->prepare_query() \app\public\wp-includes\class-wp-user-query.php:77 [29-Jan-2022 00:35:01 UTC] PHP 15. _deprecated_argument() \app\public\wp-includes\class-wp-user-query.php:372 [29-Jan-2022 00:35:01 UTC] PHP 16. trigger_error() \app\public\wp-includes\functions.php:5600
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Deprecated Functions in debug.log with 5.9’ is closed to new replies.