diff options
author | 2016-04-18 11:52:28 -0400 | |
---|---|---|
committer | 2016-04-18 11:52:28 -0400 | |
commit | 097e7d91b32dd6d27ea47e5d7cd8d6bdcf1e50a2 (patch) | |
tree | edf0e0c9fcd6ce7c922593a4df301d624e9faeb1 /plugins/jetpack/modules/theme-tools/site-logo.php | |
parent | Update pluging wordpress-mobile-pack to 2.2.2 (diff) | |
download | blogs-gentoo-097e7d91b32dd6d27ea47e5d7cd8d6bdcf1e50a2.tar.gz blogs-gentoo-097e7d91b32dd6d27ea47e5d7cd8d6bdcf1e50a2.tar.bz2 blogs-gentoo-097e7d91b32dd6d27ea47e5d7cd8d6bdcf1e50a2.zip |
Update plugin jetpack to 3.9.6
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. |