Skip to content

Commit b2373b2

Browse files
fix: store subscriber data (#496)
Store the subscriber data while the user submits the form on the Maintenance Mode page.
1 parent 57a30fe commit b2373b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/classes/wp-maintenance-mode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ public function send_contact() {
13881388
*/
13891389
public function otter_add_subscriber( $form_data ) {
13901390
if ( $form_data ) {
1391-
$input_data = $form_data->get_payload_field( 'formInputsData' );
1391+
$input_data = $form_data->get_data_from_payload( 'formInputsData' );
13921392
$input_data = array_map(
13931393
function( $input_field ) {
13941394
if ( isset( $input_field['type'] ) && 'email' === $input_field['type'] ) {

0 commit comments

Comments
 (0)