_sync_custom_logo_to_site_logo

The timeline below displays how wordpress function _sync_custom_logo_to_site_logo has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.8

/**
 * Updates the site_logo option when the custom_logo theme-mod gets updated.
 *
 * @param  mixed $value Attachment ID of the custom logo or an empty value.
 * @return mixed
 */
function _sync_custom_logo_to_site_logo($value)
{
    if (empty($value)) {
        delete_option('site_logo');
    } else {
        update_option('site_logo', $value);
    }
    return $value;
}