Changeset 51392 for branches/5.8/src/wp-includes/script-loader.php
- Timestamp:
- 07/09/2021 05:53:24 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/script-loader.php
r51384 r51392 380 380 'editor', 381 381 'window.wp.oldEditor = window.wp.editor;', 382 'after' 383 ); 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 389 $scripts->add_inline_script( 390 'wp-editor', 391 'Object.assign( window.wp.editor, window.wp.oldEditor );', 382 392 'after' 383 393 );
Note: See TracChangeset
for help on using the changeset viewer.