mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Themes: Improve WP_Query call getting global styles.
Change `orderby` clause used within `WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles` to `date` to match the `WP_Query` documentation for the parameter. Props miguelaxcar, johnbillion, JeffPaul, spacedmonkey, mxbclang, mukesh27. Fixes #56900. git-svn-id: https://develop.svn.wordpress.org/trunk@54770 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b8bf29746a
commit
6903cfd822
@ -408,7 +408,7 @@ class WP_Theme_JSON_Resolver {
|
||||
$stylesheet = $theme->get_stylesheet();
|
||||
$args = array(
|
||||
'posts_per_page' => 1,
|
||||
'orderby' => 'post_date',
|
||||
'orderby' => 'date',
|
||||
'order' => 'desc',
|
||||
'post_type' => $post_type_filter,
|
||||
'post_status' => $post_status_filter,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user