From a042603a21395dd7b3dfc36e6ec2a76afa9967a0 Mon Sep 17 00:00:00 2001 From: Erick Hitter <services@ethitter.com> Date: Sun, 21 Feb 2016 20:35:27 -0800 Subject: [PATCH] Correct property name in settings screens --- eth-amp-analytics-wp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth-amp-analytics-wp.php b/eth-amp-analytics-wp.php index 932ecae..8f77019 100644 --- a/eth-amp-analytics-wp.php +++ b/eth-amp-analytics-wp.php @@ -139,7 +139,7 @@ class ETH_AMP_Analytics_WP { * */ public function action_admin_init() { - register_setting( 'reading', $this->option_name, array( $this, 'sanitize_options' ) ); + register_setting( 'reading', $this->plugin_option_name, array( $this, 'sanitize_options' ) ); add_settings_section( 'eth-amp-analytics-wp', __( 'Google Analytics for AMP', 'eth-amp-analytics-wp' ), '__return_false', 'reading' ); add_settings_field( 'eth-amp-analytics-wp-property-id', __( 'Property ID:', 'eth-amp-analytics-wp' ), array( $this, 'settings_field_property_id' ), 'reading', 'eth-amp-analytics-wp' ); @@ -150,7 +150,7 @@ class ETH_AMP_Analytics_WP { */ public function settings_field_property_id() { ?> - <input type="text" name="<?php echo esc_attr( $this->option_name ); ?>[property_id]" value="<?php echo esc_attr( $this->get_option( 'property_id' ) ); ?>" class="medium-text" /> + <input type="text" name="<?php echo esc_attr( $this->plugin_option_name ); ?>[property_id]" value="<?php echo esc_attr( $this->get_option( 'property_id' ) ); ?>" class="medium-text" /> <p class="description"><?php printf( __( 'Google Analytics property ID, in the format %s.', 'eth-amp-analytics-wp' ), '<strong>UA-XXXXX-Y</strong>' ); ?></p> <?php -- GitLab