Bundled Theme: Ensure logo displays in Customizer previewer.

Fixes an issue with the logo not displaying the Customizer previewer when changing the site title or description.

Follow-up to [46271].

Props acosmin, boniu91, sabernhardt.
Fixes #51337.
Built from https://develop.svn.wordpress.org/trunk@52022


git-svn-id: http://core.svn.wordpress.org/trunk@51614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya 2021-11-05 22:20:58 +00:00
parent 44f50060eb
commit d4c8830ae3
2 changed files with 4 additions and 3 deletions

View File

@ -49,8 +49,9 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
$wp_customize->selective_refresh->add_partial( $wp_customize->selective_refresh->add_partial(
'custom_logo', 'custom_logo',
array( array(
'selector' => '.header-titles [class*=site-]:not(.site-description)', 'selector' => '.header-titles [class*=site-]:not(.site-description)',
'render_callback' => 'twentytwenty_customize_partial_site_logo', 'render_callback' => 'twentytwenty_customize_partial_site_logo',
'container_inclusive' => true,
) )
); );

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-52021'; $wp_version = '5.9-alpha-52022';
/** /**
* 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.