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/edit-link-form.php

    r43571 r44214  
    3232add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' );
    3333
    34 /** This action is documented in wp-admin/edit-form-advanced.php */
     34/** This action is documented in wp-admin/includes/meta-boxes.php */
    3535do_action( 'add_meta_boxes', 'link', $link );
    3636
     
    4444do_action( 'add_meta_boxes_link', $link );
    4545
    46 /** This action is documented in wp-admin/edit-form-advanced.php */
     46/** This action is documented in wp-admin/includes/meta-boxes.php */
    4747do_action( 'do_meta_boxes', 'link', 'normal', $link );
    48 /** This action is documented in wp-admin/edit-form-advanced.php */
     48/** This action is documented in wp-admin/includes/meta-boxes.php */
    4949do_action( 'do_meta_boxes', 'link', 'advanced', $link );
    50 /** This action is documented in wp-admin/edit-form-advanced.php */
     50/** This action is documented in wp-admin/includes/meta-boxes.php */
    5151do_action( 'do_meta_boxes', 'link', 'side', $link );
    5252
Note: See TracChangeset for help on using the changeset viewer.