Make WordPress Core


Ignore:
Timestamp:
12/16/2018 01:18:22 AM (3 years ago)
Author:
jeremyfelt
Message:

Block Editor: Fix meta boxes not showing.

The block editor needs to duplicate the classic meta box behaviour, so it can extract the registered meta boxes, and import them into the block editor.

To match the classic editor behaviour as closely as possible, this moves the relevant code from the classic editor, into a new function, so it can be called by both.

Merges [43837] from the 5.0 branch to trunk.

Props pento, peterwilsoncc.
Fixes #45172.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/dashboard.php

    r43571 r44214  
    133133    }
    134134
    135     /** This action is documented in wp-admin/edit-form-advanced.php */
     135    /** This action is documented in wp-admin/includes/meta-boxes.php */
    136136    do_action( 'do_meta_boxes', $screen->id, 'normal', '' );
    137137
    138     /** This action is documented in wp-admin/edit-form-advanced.php */
     138    /** This action is documented in wp-admin/includes/meta-boxes.php */
    139139    do_action( 'do_meta_boxes', $screen->id, 'side', '' );
    140140}
Note: See TracChangeset for help on using the changeset viewer.