_delete_custom_logo_on_remove_site_logo() – Removes the custom_logo theme-mod when the site_logo option gets deleted.

You appear to be a bot. Output may be restricted

Description

Removes the custom_logo theme-mod when the site_logo option gets deleted.

Usage

_delete_custom_logo_on_remove_site_logo();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/blocks/site-logo.php
Lines:

1 to 13 of 13
function _delete_custom_logo_on_remove_site_logo() {
  global $_ignore_site_logo_changes;

  // Prevent _delete_site_logo_on_remove_custom_logo and
  // _delete_site_logo_on_remove_theme_mods from firing and causing an
  // infinite loop.
  $_ignore_site_logo_changes = true;

  // Remove the custom logo.
  remove_theme_mod( 'custom_logo' );

  $_ignore_site_logo_changes = false;
}
 

 View on GitHub View on Trac