diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 8eab849f4e..a2bbd8753e 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -2218,36 +2218,22 @@ function the_block_editor_meta_box_post_form_hidden_fields( $post ) { * Some meta boxes hook into these actions to add hidden input fields in the classic post form. For backwards * compatibility, we can capture the output from these actions, and extract the hidden input fields. */ - $actions = array( - 'edit_form_after_title', - 'edit_form_advanced', - ); + ob_start(); + /** This filter is documented in wp-admin/edit-form-advanced.php */ + do_action( 'edit_form_after_title', $post ); + /** This filter is documented in wp-admin/edit-form-advanced.php */ + do_action( 'edit_form_advanced', $post ); + $classic_output = ob_get_clean(); - foreach ( $actions as $action ) { - ob_start(); - do_action_deprecated( - $action, - array( $post ), - '5.0.0', - 'block_editor_meta_box_hidden_fields', - __( 'This action is still supported in the classic editor, but is deprecated in the block editor.' ) - ); - $classic_output = ob_get_clean(); - - if ( ! $classic_output ) { + $classic_elements = wp_html_split( $classic_output ); + $hidden_inputs = ''; + foreach( $classic_elements as $element ) { + if ( 0 !== strpos( $element, ' diff --git a/wp-includes/version.php b/wp-includes/version.php index 4f293edaa2..dd84b577f2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0.2-alpha-44235'; +$wp_version = '5.0.2-alpha-44248'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.