WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2018 02:42:23 AM (14 months ago)
Author:
pento
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.

Props pento, peterwilsoncc.
Fixes #45172.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit-link-form.php

    r39537 r43837  
    3131add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null, 'normal', 'core');
    3232
    33 /** This action is documented in wp-admin/edit-form-advanced.php */
     33/** This action is documented in wp-admin/includes/meta-boxes.php */
    3434do_action( 'add_meta_boxes', 'link', $link );
    3535
     
    4343do_action( 'add_meta_boxes_link', $link );
    4444
    45 /** This action is documented in wp-admin/edit-form-advanced.php */
     45/** This action is documented in wp-admin/includes/meta-boxes.php */
    4646do_action( 'do_meta_boxes', 'link', 'normal', $link );
    47 /** This action is documented in wp-admin/edit-form-advanced.php */
     47/** This action is documented in wp-admin/includes/meta-boxes.php */
    4848do_action( 'do_meta_boxes', 'link', 'advanced', $link );
    49 /** This action is documented in wp-admin/edit-form-advanced.php */
     49/** This action is documented in wp-admin/includes/meta-boxes.php */
    5050do_action( 'do_meta_boxes', 'link', 'side', $link );
    5151
Note: See TracChangeset for help on using the changeset viewer.