Changeset 51390 for trunk/src/wp-includes/widgets.php
- Timestamp:
- 07/09/2021 10:49:15 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r51388 r51390 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.