Changeset 51394
- Timestamp:
- 07/09/2021 05:58:45 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/script-loader.php
r51392 r51394 383 383 ); 384 384 385 // wp-editor module is exposed as window.wp.editor 386 // Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor 387 // Solution: fuse the two objects together to maintain backward compatibility 388 // For more context, see https://github.com/WordPress/gutenberg/issues/33203 385 /* 386 * wp-editor module is exposed as window.wp.editor. 387 * Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor. 388 * Solution: fuse the two objects together to maintain backward compatibility. 389 * For more context, see https://github.com/WordPress/gutenberg/issues/33203. 390 */ 389 391 $scripts->add_inline_script( 390 392 'wp-editor', … … 2270 2272 * 2271 2273 * @since 5.8.0 2272 *2273 * @return void2274 2274 */ 2275 2275 function wp_enqueue_global_styles() { -
branches/5.8/src/wp-includes/widgets.php
r51393 r51394 2009 2009 2010 2010 /** 2011 * Displays a _doing_it_wrong() message for conflicting widget editor scripts. 2012 * 2011 2013 * The 'wp-editor' script module is exposed as window.wp.editor. This overrides 2012 2014 * the legacy TinyMCE editor module which is required by the widgets editor. 2013 * Because of that conflict, these two shouldn't be enqueued together. See2014 * https://core.trac.wordpress.org/ticket/53569.2015 * Because of that conflict, these two shouldn't be enqueued together. 2016 * See https://core.trac.wordpress.org/ticket/53569. 2015 2017 * 2016 2018 * There is also another conflict related to styles where the block widgets 2017 * editor is hidden if a block enqueues 'wp-edit-post' stylesheet. See2018 * https://core.trac.wordpress.org/ticket/53569.2019 * editor is hidden if a block enqueues 'wp-edit-post' stylesheet. 2020 * See https://core.trac.wordpress.org/ticket/53569. 2019 2021 * 2020 2022 * @since 5.8.0 2021 2023 * @access private 2024 * 2025 * @global WP_Scripts $wp_scripts 2026 * @global WP_Styles $wp_styles 2022 2027 */ 2023 2028 function wp_check_widget_editor_deps() { 2024 2029 global $wp_scripts, $wp_styles; 2030 2025 2031 if ( 2026 2032 $wp_scripts->query( 'wp-edit-widgets', 'enqueued' ) || … … 2029 2035 if ( $wp_scripts->query( 'wp-editor', 'enqueued' ) ) { 2030 2036 _doing_it_wrong( 2031 ' enqueue_script',2037 'wp_enqueue_script()', 2032 2038 '"wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).', 2033 2039 '5.8.0' … … 2036 2042 if ( $wp_styles->query( 'wp-edit-post', 'enqueued' ) ) { 2037 2043 _doing_it_wrong( 2038 ' enqueue_style',2044 'wp_enqueue_style()', 2039 2045 '"wp-edit-post" style should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).', 2040 2046 '5.8.0'
Note: See TracChangeset
for help on using the changeset viewer.