Make WordPress Core

Ticket #45283: 45283.diff

File 45283.diff, 819 bytes (added by pento, 8 years ago)
  • src/wp-admin/includes/post.php

    diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
    index 462bde55c3..ad261da34d 100644
    a b function the_block_editor_meta_box_post_form_hidden_fields( $post ) {  
    22022202        wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    22032203        // Permalink title nonce.
    22042204        wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
     2205
     2206        /**
     2207         * Add hidden input fields to the meta box save form.
     2208         *
     2209         * Hook into this action to print `<input type="hidden" ... />` fields, which will be POSTed back to
     2210         * the server when meta boxes are saved.
     2211         *
     2212         * @since 5.0.0
     2213         *
     2214         * @params WP_Post $post The post that is being edited.
     2215         */
     2216        do_action( 'block_editor_meta_box_hidden_fields', $post );
    22052217}