_delete_site_logo_on_remove_theme_mods() – Deletes the site logo when all theme mods are being removed.

You appear to be a bot. Output may be restricted

Description

Deletes the site logo when all theme mods are being removed.

Usage

_delete_site_logo_on_remove_theme_mods();

Parameters

Returns

void

Source

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

1 to 11 of 11
function _delete_site_logo_on_remove_theme_mods() {
  global $_ignore_site_logo_changes;

  if ( $_ignore_site_logo_changes ) {
    return;
  }

  if ( false !== get_theme_support( 'custom-logo' ) ) {
    delete_option( 'site_logo' );
  }
}
 

 View on GitHub View on Trac