Ticket #38668: 38668.0.diff
File 38668.0.diff, 2.8 KB (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp-customize-manager.php
diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php index a67ccfb..bd21b1c 100644
final class WP_Customize_Manager { 1230 1230 add_filter( 'wp_redirect', array( $this, 'add_state_query_params' ) ); 1231 1231 1232 1232 wp_enqueue_script( 'customize-preview' ); 1233 add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );1234 1233 add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 ); 1235 1234 add_filter( 'get_edit_post_link', '__return_empty_string' ); 1236 1235 … … final class WP_Customize_Manager { 1341 1340 * Print CSS for loading indicators for the Customizer preview. 1342 1341 * 1343 1342 * @since 4.2.0 1344 * @ access public1343 * @deprecated 4.7.0 Moved to `customize-preview.css`. 1345 1344 */ 1346 1345 public function customize_preview_loading_style() { 1347 ?><style> 1348 body.wp-customizer-unloading { 1349 opacity: 0.25; 1350 cursor: progress !important; 1351 -webkit-transition: opacity 0.5s; 1352 transition: opacity 0.5s; 1353 } 1354 body.wp-customizer-unloading * { 1355 pointer-events: none !important; 1356 } 1357 form.customize-unpreviewable, 1358 form.customize-unpreviewable input, 1359 form.customize-unpreviewable select, 1360 form.customize-unpreviewable button, 1361 a.customize-unpreviewable, 1362 area.customize-unpreviewable { 1363 cursor: not-allowed !important; 1364 } 1365 </style><?php 1346 _deprecated_function( __FUNCTION__, '4.7.0' ); 1366 1347 } 1367 1348 1368 1349 /** -
src/wp-includes/css/customize-preview.css
diff --git src/wp-includes/css/customize-preview.css src/wp-includes/css/customize-preview.css index ad219e4..bde8fd5 100644
1 body.wp-customizer-unloading { 2 opacity: 0.25; 3 cursor: progress !important; 4 -webkit-transition: opacity 0.5s; 5 transition: opacity 0.5s; 6 } 7 body.wp-customizer-unloading * { 8 pointer-events: none !important; 9 } 10 form.customize-unpreviewable, 11 form.customize-unpreviewable input, 12 form.customize-unpreviewable select, 13 form.customize-unpreviewable button, 14 a.customize-unpreviewable, 15 area.customize-unpreviewable { 16 cursor: not-allowed !important; 17 } 18 19 .screen-reader-text { 20 position: absolute !important; 21 clip: rect(1px, 1px, 1px, 1px); 22 overflow: hidden; 23 height: 1px; 24 width: 1px; 25 } 26 .screen-reader-text:hover, 27 .screen-reader-text:active, 28 .screen-reader-text:focus { 29 background: #fff; 30 border: 2px solid #333; 31 border-radius: 3px; 32 clip: auto !important; 33 color: #000; 34 display: block; 35 font-size: 12px; 36 height: auto; 37 padding: 12px; 38 position: absolute; 39 top: 5px; 40 left: 5px; 41 width: auto; 42 z-index: 100000; /* Above WP toolbar */ 43 } 44 1 45 .customize-partial-refreshing { 2 46 opacity: 0.25; 3 47 -webkit-transition: opacity 0.25s;