mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-10 22:58:33 +02:00
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 |
||
---|---|---|
.. | ||
about.php | ||
admin.php | ||
credits.php | ||
edit.php | ||
freedoms.php | ||
index.php | ||
menu.php | ||
plugin-editor.php | ||
plugin-install.php | ||
plugins.php | ||
profile.php | ||
settings.php | ||
setup.php | ||
site-info.php | ||
site-new.php | ||
site-settings.php | ||
site-themes.php | ||
site-users.php | ||
sites.php | ||
theme-editor.php | ||
theme-install.php | ||
themes.php | ||
update-core.php | ||
update.php | ||
upgrade.php | ||
user-edit.php | ||
user-new.php | ||
users.php |