WordPress/wp-admin/network
Andrew Nacin df48cebeb4 No-JavaScript and no-Customizer support for the new Themes screen.
JavaScript is rarely disabled, but graceful degradation is still important. For example, syntax errors can occur, usually with major WP updates that overhaul entire experiences and update external libraries combined with themes or plugins doing weird or old things. If this error is due to their current theme, a user needs to be able to access the themes screen to switch away from the theme. A more subtle issue could make things painful to diagnose.

This commit renders the grid in PHP (the template is duplicated, but it lightweight, fairly mundane, and easy to sync). On Backbone render, the grid is then re-rendered from JavaScript so searches can occur. Customize and Live Preview is disabled if JS fails to kick in. If JS is disabled, old-school "Preview" links are displayed.

No-Customizer support: The customizer is only supported when the browser supports postMessage (IE8+), and if the frontend is a different domain, CORS (IE10+). We use the .hide-if-no-customize class for this. Pre-customize "Preview" links should use .hide-if-customize.

The .load-customize class should be used to declare a link that opens the customizer. This enables customize-loader.js to intercept this link and load the customizer on top of the current window, making for a smoother experience.

fixes #25964.

Built from https://develop.svn.wordpress.org/trunk@26726


git-svn-id: http://core.svn.wordpress.org/trunk@26615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-06 16:11:10 +00:00
..
about.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
admin.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
credits.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
edit.php Inline documentation for hooks in wp-admin/network/edit.php and wp-admin/network/users.php. 2013-10-30 16:04:09 +00:00
freedoms.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
index.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
menu.php Call them network upgrades rather than network updates to better indicate that they are DB upgrades rather than code/file upgrades. 2013-03-05 17:02:31 +00:00
plugin-editor.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
plugin-install.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
plugins.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
profile.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
settings.php westi forgot my full stop. see #23569. 2013-12-04 21:57:09 +00:00
setup.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
site-info.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
site-new.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
site-settings.php Hook docs pinking shears. 2013-12-04 20:03:09 +00:00
site-themes.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
site-users.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
sites.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
theme-editor.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
theme-install.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
themes.php No-JavaScript and no-Customizer support for the new Themes screen. 2013-12-06 16:11:10 +00:00
update-core.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
update.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
upgrade.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
user-edit.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
user-new.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00
users.php Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119 2013-12-02 03:53:11 +00:00