Make WordPress Core

Changeset 54779 for branches/6.1


Ignore:
Timestamp:
11/09/2022 04:30:47 PM (2 years ago)
Author:
desrosj
Message:

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.

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

  • branches/6.1/src/wp-includes/class-wp-theme-json-resolver.php

    r54707 r54779  
    409409        $args             = array(
    410410            'posts_per_page'      => 1,
    411             'orderby'             => 'post_date',
     411            'orderby'             => 'date',
    412412            'order'               => 'desc',
    413413            'post_type'           => $post_type_filter,
Note: See TracChangeset for help on using the changeset viewer.