Changeset 51387 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 07/09/2021 01:09:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r51380 r51387 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.