From ba3a48766ee83d94309a641546e53bd56614b5b5 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 12 Mar 2015 20:07:13 +0000 Subject: [PATCH] TinyMCE wpViews: fix typos in the conditional checking which stylesheets to import. Props mattheu. See #31464. git-svn-id: https://develop.svn.wordpress.org/trunk@31757 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/mce-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js index 4a7b96b1c6..98174543b0 100644 --- a/src/wp-includes/js/mce-view.js +++ b/src/wp-includes/js/mce-view.js @@ -478,8 +478,8 @@ window.wp = window.wp || {}; ), function( link ) { if ( link.href && - link.href.indexOf( 'skins/lightgray/content.min.css' ) >= 0 && - link.href.indexOf( 'skins/wordpress/wp-content.css' ) >= 0 + link.href.indexOf( 'skins/lightgray/content.min.css' ) === -1 && + link.href.indexOf( 'skins/wordpress/wp-content.css' ) === -1 ) { styles += dom.getOuterHTML( link ); }