Skip to content

Commit 937f020

Browse files
committed
Address feedback
1 parent 13c40c8 commit 937f020

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/wp-includes/block-template-utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ function wp_maybe_activate_template( $post_id ) {
18831883

18841884
function _wp_migrate_active_templates() {
18851885
// Do not run during installation when the database is not yet available.
1886-
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
1886+
if ( wp_installing() ) {
18871887
return;
18881888
}
18891889

src/wp-includes/rest-api/endpoints/class-wp-rest-registered-templates-controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class WP_REST_Registered_Templates_Controller extends WP_REST_Templates_Controller {
44
public function __construct() {
5+
parent::__construct( 'wp_template' );
56
$this->rest_base = 'registered-templates';
67
$this->namespace = 'wp/v2';
78
}

0 commit comments

Comments
 (0)