Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ETH Google Analytics for AMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
ETH Google Analytics for AMP
Merge requests
!1
WIP: Initial release
代码
评审变更
检出分支
下载
补丁
文本差异
Closed
WIP: Initial release
develop
into
master
Overview
2
Commits
20
Changes
1
Closed
Erick Hitter
requested to merge
develop
into
master
9 years ago
Overview
2
Commits
20
Changes
1
Expand
0
0
Merge request reports
Viewing commit
a042603a
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
a042603a
Correct property name in settings screens
· a042603a
Erick Hitter
authored
9 years ago
eth-amp-analytics-wp.php
+
2
−
2
Options
@@ -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
Loading