diff options
Diffstat (limited to 'plugins/jetpack/modules/theme-tools/site-logo.php')
-rw-r--r-- | plugins/jetpack/modules/theme-tools/site-logo.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/theme-tools/site-logo.php b/plugins/jetpack/modules/theme-tools/site-logo.php index 410344fc..d6510c2b 100644 --- a/plugins/jetpack/modules/theme-tools/site-logo.php +++ b/plugins/jetpack/modules/theme-tools/site-logo.php @@ -1,7 +1,7 @@ <?php /* * Site Logo. - * @see http://jetpack.me/support/site-logo/ + * @see http://jetpack.com/support/site-logo/ * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the @@ -25,6 +25,12 @@ * @since 3.2 */ function site_logo_init() { + // For transferring existing site logo from Jetpack -> Core + if ( current_theme_supports( 'custom-logo' ) && ! get_theme_mod( 'custom_logo' ) && $jp_logo = get_option( 'site_logo' ) ) { + set_theme_mod( 'custom_logo', $jp_logo['id'] ); + delete_option( 'site_logo' ); + } + // Only load our code if our theme declares support, and the standalone plugin is not activated. if ( current_theme_supports( 'site-logo' ) && ! class_exists( 'Site_Logo', false ) ) { // Load our class for namespacing. |