| 6 | | * For block themes, it's a bit more complicated: the Site Logo block uses a different data source, a `site_logo` option instead of a theme mod (see [https://github.com/WordPress/gutenberg/issues/32065 GB #32065]), and contains some code to sync between the two. The option is supposed to be cleared by `_delete_site_logo_on_remove_custom_logo()` when the theme mod is removed, but that does not happen when deleting the attachment. It [source:tags/6.5/src/wp-includes/theme.php?marks=3446#L3439 this conditional] is adjusted to also take the `site_logo` option into account, then the option can be properly cleared too. |
| | 6 | * For block themes, it's a bit more complicated: the Site Logo block uses a different data source, a `site_logo` option instead of a theme mod (see [https://github.com/WordPress/gutenberg/issues/32065 GB #32065]), and contains some code to sync between the two. The option is supposed to be cleared by `_delete_site_logo_on_remove_custom_logo()` when the theme mod is removed, but that does not happen when deleting the attachment. If [source:tags/6.5/src/wp-includes/theme.php?marks=3446#L3439 this conditional] is adjusted to also take the `site_logo` option into account, then the option can be properly cleared too. |