mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases.
Props desrosj, davidbinda, azaozz. Fixes #53762. git-svn-id: https://develop.svn.wordpress.org/trunk@51768 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -970,11 +970,7 @@ final class _WP_Editors {
|
||||
<script type="text/javascript">
|
||||
window.wp = window.wp || {};
|
||||
window.wp.editor = window.wp.editor || {};
|
||||
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() {
|
||||
window.wp.editor.getDefaultSettings = function() {
|
||||
return {
|
||||
tinymce: <?php echo $settings; ?>,
|
||||
quicktags: {
|
||||
|
||||
Reference in New Issue
Block a user