WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2018 02:42:23 AM (13 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/includes/dashboard.php

    r43807 r43837  
    123123    }
    124124
    125     /** This action is documented in wp-admin/edit-form-advanced.php */
     125    /** This action is documented in wp-admin/includes/meta-boxes.php */
    126126    do_action( 'do_meta_boxes', $screen->id, 'normal', '' );
    127127
    128     /** This action is documented in wp-admin/edit-form-advanced.php */
     128    /** This action is documented in wp-admin/includes/meta-boxes.php */
    129129    do_action( 'do_meta_boxes', $screen->id, 'side', '' );
    130130}
Note: See TracChangeset for help on using the changeset viewer.