-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fatal error in Site Logo block in WP 5.9 (#36195)
Restore the _delete_site_logo_on_remove_custom_logo functions _delete_site_logo_on_remove_theme_mods so that they exist when block-library/src/site-logo/index.php is copied to wp-includes/blocks/site-logo.php in Core for WP 5.9. These functions were renamed to have a _gutenberg prefix in 0140ba0 to prevent an infinite loop, see https://github.com/WordPress/gutenberg/pull/34820/files#r710647763. We can prevent an infinite loop using a global variable instead.
- Loading branch information
1 parent
2dfc08d
commit f01e9c5
Showing
1 changed file
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters