Editor: fix the replacement of `wp.editor` with `wp.oldEditor` in the inline script outputted when enqueueing the old editor.
Props fullofcaffeine, davidbinda, grantmkin, get_dave, azaozz. Fixes #53762. Built from https://develop.svn.wordpress.org/trunk@51748 git-svn-id: http://core.svn.wordpress.org/trunk@51356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e1e1d021ea
commit
03bbf916a9
|
@ -969,8 +969,12 @@ final class _WP_Editors {
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.wp = window.wp || {};
|
window.wp = window.wp || {};
|
||||||
window.wp.editor = window.wp.oldEditor = window.wp.oldEditor || {};
|
window.wp.editor = window.wp.editor || {};
|
||||||
window.wp.oldEditor.getDefaultSettings = function() {
|
window.wp.oldEditor = window.wp.oldEditor || {};
|
||||||
|
|
||||||
|
// Add getDefaultSettings() to both wp.editor and wp.oldEditor for back compat.
|
||||||
|
// Use of wp.editor for "old editor" functionality should be deprecated.
|
||||||
|
window.wp.editor.getDefaultSettings = window.wp.oldEditor.getDefaultSettings = function() {
|
||||||
return {
|
return {
|
||||||
tinymce: <?php echo $settings; ?>,
|
tinymce: <?php echo $settings; ?>,
|
||||||
quicktags: {
|
quicktags: {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-51740';
|
$wp_version = '5.9-alpha-51748';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue