Make WordPress Core

Ticket #58673: 58673.diff

File 58673.diff, 683 bytes (added by SergeyBiryukov, 12 months ago)
  • src/wp-includes/class-wp-theme-json-resolver.php

     
    418418         * @return array Custom Post Type for the user's origin config.
    419419         */
    420420        public static function get_user_data_from_wp_global_styles( $theme, $create_post = false, $post_status_filter = array( 'publish' ) ) {
     421                // Block themes are unavailable during installation.
     422                if ( wp_installing() ) {
     423                        return array();
     424                }
     425
    421426                if ( ! $theme instanceof WP_Theme ) {
    422427                        $theme = wp_get_theme();
    423428                }