PluginProbe
Parse.ly / 3.8.4
Parse.ly v3.8.4
3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 3.20.3 All 105 releases
← All changes | src/Integrations/class-amp.php +3 -14 3.19.33.8.4 View file →
@@ -84,10 +84,9 @@
84 84 return $this->is_amp_request() && ! $options['disable_amp'];
85 85 }
86 86
87 87 /**
88 - * Adds AMP actions and deregisters any scripts that create AMP validation
89 - * issues.
88 + * Adds AMP actions.
90 89 *
91 90 * @since 2.6.0
92 91 */
93 92 public function add_actions(): void {
@@ -93,18 +92,8 @@
93 92 public function add_actions(): void {
94 93 if ( $this->can_handle_amp_request() ) {
95 94 add_filter( 'amp_post_template_analytics', array( $this, 'register_parsely_for_amp_analytics' ) );
96 95 add_filter( 'amp_analytics_entries', array( $this, 'register_parsely_for_amp_native_analytics' ) );
97 -
98 - // The tracker script isn't needed here, since tracking is done via
99 - // the amp-analytics tag. Including the tracker creates an AMP
100 - // validation issue.
101 - wp_deregister_script( 'wp-parsely-tracker' );
102 -
103 - // Our loader script creates an AMP validation issue, and it might
104 - // not be useful under the AMP context. If we get feedback that it's
105 - // needed, we can consider adding it under AMP.
106 - wp_deregister_script( 'wp-parsely-loader' );
107 96 }
108 97 }
109 98
110 99 /**
@@ -139,8 +128,9 @@
139 128 *
140 129 * @since 2.6.0
141 130 *
142 131 * @param array<string, mixed>|null $analytics The analytics registry.
132 + *
143 133 * @return Amp_Analytics|array<string, mixed> The analytics registry.
144 134 */
145 135 public function register_parsely_for_amp_native_analytics( ?array $analytics ): array {
146 136 if ( null === $analytics ) {
@@ -190,11 +180,10 @@
190 180 * Returns an array containing the configuration required for AMP. It
191 181 * consists of the site's Site ID if that's defined, or an empty array
192 182 * otherwise.
193 183 *
184 + * @link https://docs.parse.ly/google-amp/
194 185 * @since 3.2.0
195 - *
196 - * @link https://docs.parse.ly/google-amp/
197 186 *
198 187 * @return array<string, array<string, string>>
199 188 */
200 189 public static function construct_amp_config(): array {