[wp-trac] [WordPress Trac] #45217: Allow falling back to classic editor via meta box registration.

WordPress Trac noreply at wordpress.org
Fri Nov 23 04:12:41 UTC 2018


#45217: Allow falling back to classic editor via meta box registration.
---------------------------------------+---------------------
 Reporter:  peterwilsoncc              |       Owner:  (none)
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:  5.0
Component:  Editor                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+---------------------

Comment (by noisysocks):

 👍 [attachment:"45217.6.diff"] looks good to me.

 I tested:

 - That a prompt to install Classic Editor appears in the block editor
 - That a prompt to activate Classic Editor appears in the block editor
 - That a warning appears above the meta box in the Classic Editor

 With these variations:

 - Registering the meta box using a string callback
 - Registering a meta box using a `function() { }` callback
 - Registering the meta box in `plugins/hello/hello.php`
 - Registering the meta box in `plugins/hello.php`
 - With the ACF plugin enabled

 My only minor note is that no warning shows above the meta box in the
 Classic Editor when the meta box is registered in a plugin with no folder
 (e.g. `plugins/hello.php`), but I don't think that's important at all.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45217#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list