mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Themes: Remove legacy theme preview.
The pre-3.4 theme previewer doesn't work when using a static front page. We kept the old theme preview for no-JS and some browsers that were less capable. But since browsers are doing a better job today we don't need to continue fixing/shipping this legacy code. Bye! fixes #33178. git-svn-id: https://develop.svn.wordpress.org/trunk@33492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3036,9 +3036,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// Redirect to the fallback preview if any incompatibilities are found.
|
||||
if ( ! $.support.postMessage || ( ! $.support.cors && api.settings.isCrossDomain ) )
|
||||
return window.location = api.settings.url.fallback;
|
||||
// Bail if any incompatibilities are found.
|
||||
if ( ! $.support.postMessage || ( ! $.support.cors && api.settings.isCrossDomain ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent, topFocus,
|
||||
body = $( document.body ),
|
||||
|
||||
Reference in New Issue
Block a user