Skip to content

Commit

Permalink
forgot to rename these 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Oct 17, 2022
1 parent 379bdbd commit 47df18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/form/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function register_block_core_form() {
* Then add your own action by creating a function and hooking it to the 'wp' action.
*/
function submit_core_form_block() {
if ( ! isset( $_POST['block-form-hash'] ) ) {
if ( ! isset( $_POST['block-form-id'] ) ) {
return;
}
$content = sprintf(
Expand All @@ -97,7 +97,7 @@ function submit_core_form_block() {
esc_url( get_site_url() . $_SERVER['REQUEST_URI'] )
);
foreach ( $_POST as $key => $value ) {
if ( 'block-form-hash' === $key ) {
if ( 'block-form-id' === $key ) {
continue;
}
$content .= $key . ': ' . $value . '</br>';
Expand Down

0 comments on commit 47df18e

Please sign in to comment.