Skip to content

Commit

Permalink
Update src/wp-includes/blocks/site-logo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath authored Jun 2, 2021
1 parent 08d8b43 commit c8ce39a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/blocks/site-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ function _sync_custom_logo_to_site_logo( $old_value, $value ) {
}
}

$theme = get_option( 'stylesheet' );
add_action( "update_option_theme_mods_$theme", '_sync_custom_logo_to_site_logo', 10, 2 );
add_action( 'update_option_theme_mods_' . get_option( 'stylesheet' ), '_sync_custom_logo_to_site_logo', 10, 2 );

/**
* Updates the custom_logo theme-mod when the site_logo option gets updated.
Expand Down

0 comments on commit c8ce39a

Please sign in to comment.