Make WordPress Core


Ignore:
Timestamp:
09/06/2023 09:46:09 PM (2 years ago)
Author:
azaozz
Message:

Editor: Prevent possibility of a fatal error when previewing block themes.

Ensures that preview callbacks attached to the stylesheet and template filters do not run before pluggable.php has been included. These callbacks need functionality from pluggable.php.

Props: scruffian, johnbillion, SergeyBiryukov, okat, okat.
Fixes: #59000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r56500 r56529  
    533533add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 );
    534534
     535// Block Theme Previews.
     536add_action( 'plugins_loaded', 'initialize_theme_preview_hooks', 1 );
     537
    535538// Calendar widget cache.
    536539add_action( 'save_post', 'delete_get_calendar_cache' );
Note: See TracChangeset for help on using the changeset viewer.