Skip to content

Commit

Permalink
Merge pull request #6158 from Automattic/fix/suppress-css-migration-w…
Browse files Browse the repository at this point in the history
…arning

Suppress CSS migration warning
  • Loading branch information
gravityrail authored Jan 25, 2017
2 parents a83c696 + ebe7af9 commit 14e9813
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/custom-css/migrate-to-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 14e9813

Please sign in to comment.