Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#54933 closed defect (bug) (invalid)

use deprecated method on change switch theme.

Reported by: rezazx's profile rezazx Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9
Component: Themes Keywords:
Focuses: Cc:

Description

in wp 5.9.0 on change theme in get this message :

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 C:\wamp64\www\*\wp-includes\functions.php on line 5600


I search for this and I found \wp-content\plugins\wordpress-seo\admin\class-admin.php on line 303 use 'who' in switch_theme() function ....

Change History (2)

#1 follow-up: @johnbillion
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version set to 5.9

Thanks for the report @rezazx but as you mention this originates from the "wordpress-seo" plugin. Please check for an update to the plugin, but note that it's just a deprecated notice and won't cause a functional problem on your site.

#2 in reply to: ↑ 1 @rezazx
3 years ago

Replying to johnbillion:

Thanks for the report @rezazx but as you mention this originates from the "wordpress-seo" plugin. Please check for an update to the plugin, but note that it's just a deprecated notice and won't cause a functional problem on your site.

Yes that's right.
The problem was solved with the yoast SEO update.

thank you!

Note: See TracTickets for help on using tickets.