Skip to content

Commit 12aa4de

Browse files
Update src/wp-includes/class-wp-theme-json-resolver.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent cdba59c commit 12aa4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public static function get_user_data_from_wp_global_styles( $theme, $create_post
533533
);
534534
if ( ! is_wp_error( $cpt_post_id ) ) {
535535
$post = get_post( $cpt_post_id );
536-
if ( is_object( $post ) ) {
536+
if ( $post instanceof WP_Post ) {
537537
$user_cpt = get_object_vars( $post );
538538
}
539539
}

0 commit comments

Comments
 (0)