diff --git a/includes/core/class-account.php b/includes/core/class-account.php index 6668d2ba..03786d90 100644 --- a/includes/core/class-account.php +++ b/includes/core/class-account.php @@ -567,7 +567,7 @@ if ( ! class_exists( 'um\core\Account' ) ) { function get_tab_fields( $id, $shortcode_args ) { $output = null; - UM()->fields()->set_id = $id; + UM()->fields()->set_id = absint( $id ); UM()->fields()->set_mode = 'account'; UM()->fields()->editing = true; diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index c7171e38..0ce140bd 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -4047,7 +4047,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { UM()->form()->nonce = wp_create_nonce( 'um-profile-nonce' . UM()->user()->target_id ); } - $this->set_id = $this->global_args['form_id']; + $this->set_id = absint( $this->global_args['form_id'] ); $this->field_icons = ( isset( $this->global_args['icons'] ) ) ? $this->global_args['icons'] : 'label'; @@ -4548,7 +4548,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { UM()->form()->form_suffix = '-' . $this->global_args['form_id']; $this->set_mode = $mode; - $this->set_id = $this->global_args['form_id']; + $this->set_id = absint( $this->global_args['form_id'] ); $this->field_icons = ( isset( $this->global_args['icons'] ) ) ? $this->global_args['icons'] : 'label'; diff --git a/includes/core/class-form.php b/includes/core/class-form.php index 8821984f..aa4bbdfd 100644 --- a/includes/core/class-form.php +++ b/includes/core/class-form.php @@ -710,7 +710,7 @@ if ( ! class_exists( 'um\core\Form' ) ) { public function beautify( $form ) { if ( isset( $form['form_id'] ) ) { $this->form_suffix = '-' . $form['form_id']; - $this->processing = $form['form_id']; + $this->processing = absint( $form['form_id'] ); foreach ( $form as $key => $value ) { if ( strstr( $key, $this->form_suffix ) ) { diff --git a/includes/core/class-password.php b/includes/core/class-password.php index d62a712f..a5e1c882 100644 --- a/includes/core/class-password.php +++ b/includes/core/class-password.php @@ -170,7 +170,7 @@ if ( ! class_exists( 'um\core\Password' ) ) { return ''; } - UM()->fields()->set_id = $args['form_id']; + UM()->fields()->set_id = absint( $args['form_id'] ); ob_start();