mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
Docs: Some documentation improvements for wp_check_widget_editor_deps():
* Add missing short description for the function. * Correct function names in `_doing_it_wrong()` calls. * Document the usage of `$wp_scripts` and `$wp_styles` globals. * Update syntax for multi-line comment per the documentation standards. Follow-up to [51387], [51388]. See #53437, #53569. git-svn-id: https://develop.svn.wordpress.org/trunk@51390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -382,10 +382,12 @@ function wp_default_packages_inline_scripts( $scripts ) {
|
||||
'after'
|
||||
);
|
||||
|
||||
// wp-editor module is exposed as window.wp.editor
|
||||
// Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor
|
||||
// Solution: fuse the two objects together to maintain backward compatibility
|
||||
// For more context, see https://github.com/WordPress/gutenberg/issues/33203
|
||||
/*
|
||||
* wp-editor module is exposed as window.wp.editor.
|
||||
* Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor.
|
||||
* Solution: fuse the two objects together to maintain backward compatibility.
|
||||
* For more context, see https://github.com/WordPress/gutenberg/issues/33203.
|
||||
*/
|
||||
$scripts->add_inline_script(
|
||||
'wp-editor',
|
||||
'Object.assign( window.wp.editor, window.wp.oldEditor );',
|
||||
@@ -2269,8 +2271,6 @@ function wp_common_block_scripts_and_styles() {
|
||||
* Enqueues the global styles defined via theme.json.
|
||||
*
|
||||
* @since 5.8.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wp_enqueue_global_styles() {
|
||||
if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) {
|
||||
|
||||
Reference in New Issue
Block a user