WordPress.org

Make WordPress Core

Changeset 43880


Ignore:
Timestamp:
11/09/2018 08:32:19 AM (12 months ago)
Author:
pento
Message:

Block Editor: Prevent the meta box form from being accidentally submitted.

Meta boxes are loaded inside a wrapper form, that the block editor submits as part of the saving process. It shouldn't be submitted manually.

See #45284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/post.php

    r43861 r43880  
    20662066    </form>
    20672067    <?php foreach ( $locations as $location ) : ?>
    2068         <form class="metabox-location-<?php echo esc_attr( $location ); ?>">
     2068        <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
    20692069            <div id="poststuff" class="sidebar-open">
    20702070                <div id="postbox-container-2" class="postbox-container">
Note: See TracChangeset for help on using the changeset viewer.