Make WordPress Core


Ignore:
Timestamp:
12/16/2018 10:51:01 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Meta Boxes: Add the block_editor_meta_box_hidden_fields action.

Lacking an appropriate action in the classic editor, plugins that add meta boxes have historically hooked into various actions in order to add hidden input fields.

This change also adds backwards compatibility for two of the most common: edit_form_after_title, and edit_form_advanced.

Props pento, danielbachhuber.
Merges [43882] to trunk.
Fixes #45283.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/edit-form-blocks.php

    r44223 r44241  
    359359register_and_do_post_meta_boxes( $post );
    360360
    361 // Some meta boxes hook into the 'edit_form_advanced' filter.
    362 /** This action is documented in wp-admin/edit-form-advanced.php */
    363 do_action( 'edit_form_advanced', $post );
    364 
    365361require_once( ABSPATH . 'wp-admin/admin-header.php' );
    366362?>
Note: See TracChangeset for help on using the changeset viewer.