mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 08:05:21 +01: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. Merges [54770] to the 6.1 branch. Fixes #56900. Built from https://develop.svn.wordpress.org/branches/6.1@54779 git-svn-id: http://core.svn.wordpress.org/branches/6.1@54331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2855b38359
commit
e988ef55b7
@ -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,
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1.1-alpha-54778';
|
||||
$wp_version = '6.1.1-alpha-54779';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user