[wp-trac] [WordPress Trac] #64486: Deactivating plugin removes native wp metabox from page editor

WordPress Trac noreply at wordpress.org
Fri Jan 9 10:16:53 UTC 2026


#64486: Deactivating plugin removes native wp metabox from page editor
--------------------------+-----------------------------
 Reporter:  mrDollar4444  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  6.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi, can you please confirm the issue?
 Path to recreate:
 1. On a brand new latest version WordPress installation, install and
 activate the Classic Editor plugin:

 {{{
 wp plugin install classic-editor --activate
 }}}


 2. Create and activate a new test plugin:

 {{{
   wp scaffold plugin first-test-plugin --activate

 }}}

 3. Open the main test plugin file and insert code that creates a metabox
 with a metabox area (it is real code that I took from the Advanced Custom
 Fields plugin).


 {{{
 <?php
 /**
  * Plugin Name:     First Test Plugin
  * Plugin URI:      PLUGIN SITE HERE
  * Description:     PLUGIN DESCRIPTION HERE
  * Author:          YOUR NAME HERE
  * Author URI:      YOUR SITE HERE
  * Text Domain:     first-test-plugin
  * Domain Path:     /languages
  * Version:         0.1.0
  *
  * @package         First_Test_Plugin
  */

 add_action( 'add_meta_boxes', 'test_register_metabox', 10, 2 );
 function test_register_metabox( $post_type, $post ) {
     // Register a box into our custom context.
     add_meta_box(
         'test_box_id',
         'First plugin metabox',
         'test_box_callback',
         $post_type,
         'test_do_meta_boxes',
     );
 }
 function test_box_callback( $post ) {
     echo '<h1>First Plugin Metabox</h1>';
 }

 add_action( 'edit_form_after_title', 'set_meta_box_in_special_area' );
 function set_meta_box_in_special_area() {
         global $post;
         do_meta_boxes( get_current_screen(), 'test_do_meta_boxes', $post
 );
 }

 }}}

 4. Now create a new page.

 5. On the new page screen, move the “Featured Image” meta box above our
 “First plugin metabox”. https://i.imgur.com/osFygs0.png

 6. Now deactivate our first-test-plugin:

 {{{
 wp plugin deactivate first-test-plugin
 }}}


 7. Reload the page.

 8. Observe the issue: the “Featured Image” metabox disappears and is not
 accessible anymore.

 Expected behaviour: The visibility of native WP metaboxes should not be
 affected by 3-party disabled plugins.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64486>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list