mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@44214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -31,7 +31,7 @@ add_meta_box( 'linktargetdiv', __( 'Target' ), 'link_target_meta_box', null, 'no
|
||||
add_meta_box( 'linkxfndiv', __( 'Link Relationship (XFN)' ), 'link_xfn_meta_box', null, 'normal', 'core' );
|
||||
add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' );
|
||||
|
||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'add_meta_boxes', 'link', $link );
|
||||
|
||||
/**
|
||||
@@ -43,11 +43,11 @@ do_action( 'add_meta_boxes', 'link', $link );
|
||||
*/
|
||||
do_action( 'add_meta_boxes_link', $link );
|
||||
|
||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'do_meta_boxes', 'link', 'normal', $link );
|
||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
|
||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'do_meta_boxes', 'link', 'side', $link );
|
||||
|
||||
add_screen_option(
|
||||
|
||||
Reference in New Issue
Block a user