Twenty Ten: Use correct path for loading block patterns.
By using `get_template_directory()` instead of `get_stylesheet_directory()`, we make sure to include the `block-patterns.php` file from the parent theme. This avoids a PHP fatal error when using a child theme of Twenty Ten. Follow-up to [51106]. Props ryelle, sabernhardt, loranrendel. Fixes #53752. Built from https://develop.svn.wordpress.org/trunk@51482 git-svn-id: http://core.svn.wordpress.org/trunk@51093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f753d70a82
commit
5ffbad0b42
|
@ -740,7 +740,7 @@ function twentyten_block_editor_styles() {
|
||||||
add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
|
add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
|
||||||
|
|
||||||
// Block Patterns.
|
// Block Patterns.
|
||||||
require get_stylesheet_directory() . '/block-patterns.php';
|
require get_template_directory() . '/block-patterns.php';
|
||||||
|
|
||||||
if ( ! function_exists( 'wp_body_open' ) ) :
|
if ( ! function_exists( 'wp_body_open' ) ) :
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-51481';
|
$wp_version = '5.9-alpha-51482';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue