From ebe7af9db39654a7675fae6c048b988080ff8fea Mon Sep 17 00:00:00 2001 From: Daniel Walmsley Date: Tue, 24 Jan 2017 21:39:15 -0800 Subject: [PATCH] Suppress CSS migration warning --- modules/custom-css/migrate-to-core.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/custom-css/migrate-to-core.php b/modules/custom-css/migrate-to-core.php index 2f36596e1726c..bcbc71fbf5601 100644 --- a/modules/custom-css/migrate-to-core.php +++ b/modules/custom-css/migrate-to-core.php @@ -41,6 +41,11 @@ public static function do_migration() { $preprocessors = apply_filters( 'jetpack_custom_css_preprocessors', array() ); $core_css_post = wp_get_custom_css_post(); $jetpack_css_post = self::get_post(); + + if ( ! $jetpack_css_post ) { + return; + } + $revisions = self::get_all_revisions(); // Migrate the settings from revision meta to theme mod.