Changeset 58213 for trunk/src/wp-includes/theme.php
- Timestamp:
- 05/27/2024 04:39:13 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r57987 r58213 3435 3435 * @since 4.3.0 Also removes `header_image_data`. 3436 3436 * @since 4.5.0 Also removes custom logo theme mods. 3437 * @since 6.6.0 Also removes `site_logo` option set by the site logo block. 3437 3438 * 3438 3439 * @param int $id The attachment ID. … … 3443 3444 $background_image = get_background_image(); 3444 3445 $custom_logo_id = get_theme_mod( 'custom_logo' ); 3446 $site_logo_id = get_option( 'site_logo' ); 3445 3447 3446 3448 if ( $custom_logo_id && $custom_logo_id == $id ) { 3447 3449 remove_theme_mod( 'custom_logo' ); 3448 3450 remove_theme_mod( 'header_text' ); 3451 } 3452 3453 if ( $site_logo_id && $site_logo_id == $id ) { 3454 delete_option( 'site_logo' ); 3449 3455 } 3450 3456
Note: See TracChangeset
for help on using the changeset viewer.