Make WordPress Core

Ticket #56900: 56900.diff

File 56900.diff, 635 bytes (added by miguelaxcar, 23 months ago)

diff against origin/6.1 branch

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

    diff --git a/src/wp-includes/class-wp-theme-json-resolver.php b/src/wp-includes/class-wp-theme-json-resolver.php
    index 18b997561c..0f76477dff 100644
    a b class WP_Theme_JSON_Resolver { 
    408408                $stylesheet       = $theme->get_stylesheet();
    409409                $args             = array(
    410410                        'posts_per_page'      => 1,
    411                         'orderby'             => 'post_date',
     411                        'orderby'             => 'date',
    412412                        'order'               => 'desc',
    413413                        'post_type'           => $post_type_filter,
    414414                        'post_status'         => $post_status_filter,