Make WordPress Core


Ignore:
Timestamp:
06/23/2023 06:27:45 AM (3 years ago)
Author:
isabel_brison
Message:

REST API: return post modified datetime for Templates.

Adds a modified field to the template and template part objects in the rest response for WP_REST_Templates_Controller.

Props ramonopoly, andrewserong, mukesh27, timothyblynjacobs.
Fixes #58540.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-template.php

    r55693 r55992  
    147147         */
    148148        public $area;
     149
     150        /**
     151         * Modified.
     152         *
     153         * @since 6.3.0
     154         * @var string|null
     155         */
     156        public $modified;
    149157}
Note: See TracChangeset for help on using the changeset viewer.