[wp-trac] [WordPress Trac] #56900: WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles call to WP_Query incorrect.
WordPress Trac
noreply at wordpress.org
Mon Oct 24 22:02:56 UTC 2022
#56900: WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles call to
WP_Query incorrect.
---------------------------+-----------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 6.1
Severity: minor | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
`WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles` includes a
call to `WP_Query` which is ordered by `post_date`.
The correct value is `date`.
As `WP_Query` orders by date by default, this is a minor bug as it doesn't
have any affect on the database query generated. If needs be, it can
probably wait until 6.1.1.
Introduced in [54186].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56900>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list