[wp-trac] [WordPress Trac] #51337: Twenty Twenty: Custom Logo bug in the Customizer

WordPress Trac noreply at wordpress.org
Fri Sep 18 06:33:29 UTC 2020

#51337: Twenty Twenty: Custom Logo bug in the Customizer
 Reporter:  acosmin        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  5.5
 Severity:  normal         |   Keywords:
  Focuses:                 |
 This ticket is based on a
 [https://themes.trac.wordpress.org/ticket/87652#comment:3 bug discovered]
 by @ilovewpcom
  I think I found a weird bug in the theme. It's not breaking anything,
 just some odd behaviour.

  Steps to replicate the issue:
  1. Start with a website that doesn't have a logo in the Site Identity.
  2. Open the Customize page and open the Site Identity panel.
  3. Upload a logo and DON'T click the Publish button.
  4. Change the site title or description under the logo.

  Right after step 4 you will notice that the logo disappears in the
 previewer and the site title becomes a lot bigger.
  If you click the Publish button to save the changes then everything is
 correct on the front-end.
  The only issue is with the previewer's odd behaviour.
  I hope this helps :)

 A solution for this is to add:
 'container_inclusive' => version_compare( $GLOBALS['wp_version'], '5.5',
 '>=' ),
 on `class-twentytwenty-customize.php:L50`

 It probably needs more testing.

Ticket URL: <https://core.trac.wordpress.org/ticket/51337>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list