Version Description
(12th July 2021) = * Fixed: Exclude categories loop not working #5088 * Fixed: Endpoint '?amp' not working with plain permalink #5087
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.12 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.11 to 1.0.77.12
- README.md +6 -11
- accelerated-moblie-pages.php +2 -2
- changelog.txt +4 -0
- includes/features/functions.php +1 -3
- includes/options/admin-config.php +13 -9
- readme.txt +6 -11
README.md
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -197,6 +197,10 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
|
|
200 |
= 1.0.77.11 (6th July 2021) =
|
201 |
* Improvements: Improved readme.txt for newer features #5080
|
202 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
@@ -208,13 +212,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
208 |
* Improvements: Added data-hero attribute in AMP logo #5083
|
209 |
* Fixed: Webp images not appearing with Litespeed cache #5081
|
210 |
|
211 |
-
= 1.0.77.9 (29th June 2021) =
|
212 |
-
* Added: AMP widget for adding amp code #5064
|
213 |
-
* Added: Filter to modify the WP Rocket CDN URL #5076
|
214 |
-
* Fixed: Meta description of Rank Math SEO plugin not showing on amp #5071
|
215 |
-
* Fixed: Slide Anything Plugin slider content is not showing #5073
|
216 |
-
* Fixed: When Convert AMP to WP theme Option is enabled, it breaks the Design #5074
|
217 |
-
* Fixed: Remove preload if Featured Image option is off in AMP options panel #5077
|
218 |
-
* Fixed: Icons are not loading when visiting first time or after clearing cache #5060
|
219 |
-
|
220 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 1.0.77.12
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
197 |
|
198 |
== Changelog ==
|
199 |
|
200 |
+
= 1.0.77.12 (12th July 2021) =
|
201 |
+
* Fixed: Exclude categories loop not working #5088
|
202 |
+
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
203 |
+
|
204 |
= 1.0.77.11 (6th July 2021) =
|
205 |
* Improvements: Improved readme.txt for newer features #5080
|
206 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
212 |
* Improvements: Added data-hero attribute in AMP logo #5083
|
213 |
* Fixed: Webp images not appearing with Litespeed cache #5081
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
accelerated-moblie-pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
-
Version: 1.0.77.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
|
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
-
define('AMPFORWP_VERSION','1.0.77.
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
3 |
Plugin Name: Accelerated Mobile Pages
|
4 |
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
|
5 |
Description: AMP for WP - Accelerated Mobile Pages for WordPress
|
6 |
+
Version: 1.0.77.12
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/25
|
20 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
|
21 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
22 |
define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
|
23 |
+
define('AMPFORWP_VERSION','1.0.77.12');
|
24 |
define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
|
25 |
if(!defined('AMPFROWP_HOST_NAME')){
|
26 |
$urlinfo = get_bloginfo('url');
|
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 1.0.77.11 (6th July 2021) =
|
4 |
* Improvements: Improved readme.txt for newer features #5080
|
5 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.12 (12th July 2021) =
|
4 |
+
* Fixed: Exclude categories loop not working #5088
|
5 |
+
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
6 |
+
|
7 |
= 1.0.77.11 (6th July 2021) =
|
8 |
* Improvements: Improved readme.txt for newer features #5080
|
9 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
includes/features/functions.php
CHANGED
@@ -100,9 +100,7 @@ function ampforwp_add_admin_styling($hook_suffix){
|
|
100 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
|
101 |
$redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
|
102 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
103 |
-
$ampforwp_nonce =
|
104 |
-
'security' => wp_create_nonce( 'ampforwp-verify-request' )
|
105 |
-
);
|
106 |
wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', $ampforwp_nonce );
|
107 |
wp_enqueue_script( 'wp-color-picker' );
|
108 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
100 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
|
101 |
$redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
|
102 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
103 |
+
$ampforwp_nonce = wp_create_nonce( 'ampforwp-verify-request' );
|
|
|
|
|
104 |
wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce', $ampforwp_nonce );
|
105 |
wp_enqueue_script( 'wp-color-picker' );
|
106 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
includes/options/admin-config.php
CHANGED
@@ -119,7 +119,7 @@ if(!is_plugin_active( 'amp-pagebuilder-compatibility/amp-pagebuilder-compatibili
|
|
119 |
);
|
120 |
$pb_for_amp[] = $elemntr_pb_for_ampchecker;*/
|
121 |
|
122 |
-
$all_extensions_data = $jetpack_rp = $sassy_ss = array();
|
123 |
if(class_exists( 'Jetpack_RelatedPosts' )){
|
124 |
$jetpack_rp = array(
|
125 |
'id' => 'ampforwp-jetpack-related-posts',
|
@@ -136,6 +136,17 @@ if(function_exists('heateor_sss_save_default_options')){
|
|
136 |
'default' => '1',
|
137 |
);
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
global $all_extensions_data;
|
140 |
$extension_listing_array = array(
|
141 |
array(
|
@@ -3081,14 +3092,7 @@ Redux::setSection( $opt_name, array(
|
|
3081 |
'default' => 0,
|
3082 |
),
|
3083 |
// End-point option
|
3084 |
-
|
3085 |
-
'id' => 'amp-core-end-point',
|
3086 |
-
'type' => 'switch',
|
3087 |
-
'title' => ('Change End Point to ?amp'),
|
3088 |
-
'default' => 0,
|
3089 |
-
'tooltip-subtitle' => 'Enable this option when /amp/ is giving 404 after resaving the permalink settings.',
|
3090 |
-
'desc' => esc_html__( 'Making endpoints to ?amp will help you get the amp in tricky setups with taxonomies & post typs. Question mark in the url will not make any difference in the SEO.' ),
|
3091 |
-
),
|
3092 |
array(
|
3093 |
'id' => 'ampforwp-amp-convert-to-wp',
|
3094 |
'type' => 'switch',
|
119 |
);
|
120 |
$pb_for_amp[] = $elemntr_pb_for_ampchecker;*/
|
121 |
|
122 |
+
$all_extensions_data = $jetpack_rp = $sassy_ss = $amp_endpoint = array();
|
123 |
if(class_exists( 'Jetpack_RelatedPosts' )){
|
124 |
$jetpack_rp = array(
|
125 |
'id' => 'ampforwp-jetpack-related-posts',
|
136 |
'default' => '1',
|
137 |
);
|
138 |
}
|
139 |
+
$get_permalink_structure = get_option('permalink_structure');
|
140 |
+
if ($get_permalink_structure) {
|
141 |
+
$amp_endpoint = array(
|
142 |
+
'id' => 'amp-core-end-point',
|
143 |
+
'type' => 'switch',
|
144 |
+
'title' => esc_html__('Change End Point to ?amp','accelerated-mobile-pages'),
|
145 |
+
'default' => 0,
|
146 |
+
'tooltip-subtitle' => esc_html__('Enable this option when /amp/ is giving 404 after resaving the permalink settings.','accelerated-mobile-pages'),
|
147 |
+
'desc' => esc_html__( 'Making endpoints to ?amp will help you get the amp in tricky setups with taxonomies & post typs. Question mark in the url will not make any difference in the SEO.','accelerated-mobile-pages' ),
|
148 |
+
);
|
149 |
+
}
|
150 |
global $all_extensions_data;
|
151 |
$extension_listing_array = array(
|
152 |
array(
|
3092 |
'default' => 0,
|
3093 |
),
|
3094 |
// End-point option
|
3095 |
+
$amp_endpoint,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3096 |
array(
|
3097 |
'id' => 'ampforwp-amp-convert-to-wp',
|
3098 |
'type' => 'switch',
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
|
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.0.77.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,6 +194,10 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
197 |
= 1.0.77.11 (6th July 2021) =
|
198 |
* Improvements: Improved readme.txt for newer features #5080
|
199 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
@@ -205,13 +209,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
205 |
* Improvements: Added data-hero attribute in AMP logo #5083
|
206 |
* Fixed: Webp images not appearing with Litespeed cache #5081
|
207 |
|
208 |
-
= 1.0.77.9 (29th June 2021) =
|
209 |
-
* Added: AMP widget for adding amp code #5064
|
210 |
-
* Added: Filter to modify the WP Rocket CDN URL #5076
|
211 |
-
* Fixed: Meta description of Rank Math SEO plugin not showing on amp #5071
|
212 |
-
* Fixed: Slide Anything Plugin slider content is not showing #5073
|
213 |
-
* Fixed: When Convert AMP to WP theme Option is enabled, it breaks the Design #5074
|
214 |
-
* Fixed: Remove preload if Featured Image option is off in AMP options panel #5077
|
215 |
-
* Fixed: Icons are not loading when visiting first time or after clearing cache #5060
|
216 |
-
|
217 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 1.0.77.12
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 1.0.77.12 (12th July 2021) =
|
198 |
+
* Fixed: Exclude categories loop not working #5088
|
199 |
+
* Fixed: Endpoint '?amp' not working with plain permalink #5087
|
200 |
+
|
201 |
= 1.0.77.11 (6th July 2021) =
|
202 |
* Improvements: Improved readme.txt for newer features #5080
|
203 |
* Fixed: SVG images are loading with a bigger size in the AMP version #5084
|
209 |
* Improvements: Added data-hero attribute in AMP logo #5083
|
210 |
* Fixed: Webp images not appearing with Litespeed cache #5081
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|