Make WordPress Core


Ignore:
Timestamp:
10/02/2023 10:54:29 PM (3 years ago)
Author:
danielbachhuber
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, azaozz.
Merges [56529] and [56757] to the 6.3 branch.
Fixes #59000.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/src/wp-includes/default-filters.php

    r56140 r56758  
    534534add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 );
    535535
     536// Block Theme Previews.
     537add_action( 'plugins_loaded', 'wp_initialize_theme_preview_hooks', 1 );
     538
    536539// Calendar widget cache.
    537540add_action( 'save_post', 'delete_get_calendar_cache' );
Note: See TracChangeset for help on using the changeset viewer.