Version Description
(4th February 2020) = * Fixed: Fatal error when AMP theme framework is active #4128
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.21 |
Comparing to | |
See all releases |
Code changes from version 1.0.20 to 1.0.21
- README.md +8 -5
- accelerated-moblie-pages.php +2 -2
- changelog.txt +10 -7
- components/theme-loader.php +13 -14
- readme.txt +8 -5
README.md
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -194,11 +194,14 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
-
= 1.0.
|
198 |
-
* Fixed:
|
199 |
-
|
|
|
|
|
|
|
|
|
200 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
201 |
-
* Fixed: Modifying the location of the theme files. #4091
|
202 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
203 |
|
204 |
= 1.0.19 (29th January 2020) =
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.0.21
|
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.21 (4th February 2020) =
|
198 |
+
* Fixed: Fatal error when AMP theme framework is active #4128
|
199 |
+
|
200 |
+
= 1.0.20 (31st January 2020) =
|
201 |
+
* Improvement: Filter added to Modify the location of the theme files from plugin older. #4091
|
202 |
+
* Improvement: Cache Should auto clear when any plugin is activated/deactivated #4046
|
203 |
+
* Improvement: Need to add nofollow feature in cookie notification option #3612
|
204 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
|
|
205 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
206 |
|
207 |
= 1.0.19 (29th January 2020) =
|
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.
|
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.
|
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.21
|
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.21');
|
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,10 +1,13 @@
|
|
1 |
== Changelog ==
|
2 |
|
3 |
-
= 1.0.
|
4 |
-
* Fixed:
|
5 |
-
|
|
|
|
|
|
|
|
|
6 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
7 |
-
* Fixed: Modifying the location of the theme files. #4091
|
8 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
9 |
|
10 |
= 1.0.19 (29th January 2020) =
|
@@ -108,7 +111,7 @@
|
|
108 |
* Fixed: amp-auto-ads script is loading in AMP-pages when Google site kit plugin is enable. #4009
|
109 |
* Fixed: wp-block CSS is heavily loading even when tree shaking is enabled in core. (Page builder is enabled) #4014
|
110 |
|
111 |
-
= 1.0.6 (
|
112 |
* Improvement: Allow users to add custom script in amp by using amp theme frame work plugin or without plugin #3865
|
113 |
* Improvement: Allow users to register scripts in proper way in AMP Theme Framework #3257
|
114 |
* Improvement: Need to add filter to modify mobile redirection #3987
|
@@ -431,7 +434,7 @@
|
|
431 |
* Fixed: Issue in Breacrumb if category has a comma #3598
|
432 |
* Fixed: After last update the cookie bar text shows the html code (a href) instead of creating a link. #3617
|
433 |
|
434 |
-
= 0.9.98.6 (
|
435 |
* Improvements: Structured Data improvements #3567
|
436 |
* Improvements: Addthis share button's postion field in 1,2 and 3 designs #3553
|
437 |
* Fixed: Rare issue AMP settings are not getting saved showing popup error "There was a problem with your action. Please try again or reload the page." #3494
|
@@ -2800,7 +2803,7 @@ Reformatting and Minifying of stylesheet [Code Cleaning]
|
|
2800 |
* 404 and Archive page Mobile redirection code refined
|
2801 |
* User Experience Improvement: Installation process was improved
|
2802 |
|
2803 |
-
= 0.9.3 [
|
2804 |
* Proper Details at https://ampforwp.com/custom-amp-content-editor/
|
2805 |
* Custom AMP Editor - Which allows you to override your Content that you had written in Post or page, so you can add the different content just for AMP.
|
2806 |
* FrontPage had some validation issues. [Bug fix]
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.21 (4th February 2020) =
|
4 |
+
* Fixed: Fatal error when AMP theme framework is active #4128
|
5 |
+
|
6 |
+
= 1.0.20 (31st January 2020) =
|
7 |
+
* Improvement: Filter added to Modify the location of the theme files from plugin older. #4091
|
8 |
+
* Improvement: Cache Should auto clear when any plugin is activated/deactivated #4046
|
9 |
+
* Improvement: Need to add nofollow feature in cookie notification option #3612
|
10 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
|
|
11 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
12 |
|
13 |
= 1.0.19 (29th January 2020) =
|
111 |
* Fixed: amp-auto-ads script is loading in AMP-pages when Google site kit plugin is enable. #4009
|
112 |
* Fixed: wp-block CSS is heavily loading even when tree shaking is enabled in core. (Page builder is enabled) #4014
|
113 |
|
114 |
+
= 1.0.6 (31st December 2019) =
|
115 |
* Improvement: Allow users to add custom script in amp by using amp theme frame work plugin or without plugin #3865
|
116 |
* Improvement: Allow users to register scripts in proper way in AMP Theme Framework #3257
|
117 |
* Improvement: Need to add filter to modify mobile redirection #3987
|
434 |
* Fixed: Issue in Breacrumb if category has a comma #3598
|
435 |
* Fixed: After last update the cookie bar text shows the html code (a href) instead of creating a link. #3617
|
436 |
|
437 |
+
= 0.9.98.6 (31st AUGUST 2019) =
|
438 |
* Improvements: Structured Data improvements #3567
|
439 |
* Improvements: Addthis share button's postion field in 1,2 and 3 designs #3553
|
440 |
* Fixed: Rare issue AMP settings are not getting saved showing popup error "There was a problem with your action. Please try again or reload the page." #3494
|
2803 |
* 404 and Archive page Mobile redirection code refined
|
2804 |
* User Experience Improvement: Installation process was improved
|
2805 |
|
2806 |
+
= 0.9.3 [31st December 2016] =
|
2807 |
* Proper Details at https://ampforwp.com/custom-amp-content-editor/
|
2808 |
* Custom AMP Editor - Which allows you to override your Content that you had written in Post or page, so you can add the different content just for AMP.
|
2809 |
* FrontPage had some validation issues. [Bug fix]
|
components/theme-loader.php
CHANGED
@@ -1,25 +1,24 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
|
4 |
-
}
|
5 |
-
|
6 |
-
|
7 |
-
$amp_main_dir =
|
8 |
-
|
9 |
-
$amp_theme_dir = apply_filters('ampforwp_theme_dir', $amp_main_dir);
|
10 |
-
|
11 |
-
if ( ! is_dir($amp_theme_dir)) {
|
12 |
-
$amp_theme_dir = $amp_main_dir;
|
13 |
-
}
|
14 |
-
define('AMPFORWP_CUSTOM_THEME', $amp_theme_dir );
|
15 |
}
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
// Include functions.php
|
18 |
$function_file = AMPFORWP_CUSTOM_THEME . '/functions.php';
|
19 |
if ( ! file_exists($function_file)) {
|
20 |
$function_file = $amp_main_dir .'/functions.php';
|
21 |
}
|
22 |
-
|
|
|
|
|
23 |
//Filter the Template files to override previous ones
|
24 |
add_filter( 'amp_post_template_file', 'ampforwp_designing_custom_template', 10, 3 );
|
25 |
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
$amp_main_dir = AMPFORWP_PLUGIN_DIR . 'templates/design-manager/swift';
|
6 |
+
if ( 4 != $ampforwp_design_selector ) {
|
7 |
+
$amp_main_dir = ABSPATH.'wp-content/plugins/'. esc_attr($ampforwp_design_selector);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
+
$amp_theme_dir = apply_filters('ampforwp_theme_dir', $amp_main_dir);
|
10 |
+
if ( ! is_dir($amp_theme_dir)) {
|
11 |
+
$amp_theme_dir = $amp_main_dir;
|
12 |
+
}
|
13 |
+
define('AMPFORWP_CUSTOM_THEME', $amp_theme_dir );
|
14 |
// Include functions.php
|
15 |
$function_file = AMPFORWP_CUSTOM_THEME . '/functions.php';
|
16 |
if ( ! file_exists($function_file)) {
|
17 |
$function_file = $amp_main_dir .'/functions.php';
|
18 |
}
|
19 |
+
if ( file_exists($function_file)){
|
20 |
+
require_once( $function_file );
|
21 |
+
}
|
22 |
//Filter the Template files to override previous ones
|
23 |
add_filter( 'amp_post_template_file', 'ampforwp_designing_custom_template', 10, 3 );
|
24 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
|
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -191,11 +191,14 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
-
= 1.0.
|
195 |
-
* Fixed:
|
196 |
-
|
|
|
|
|
|
|
|
|
197 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
198 |
-
* Fixed: Modifying the location of the theme files. #4091
|
199 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
200 |
|
201 |
= 1.0.19 (29th January 2020) =
|
4 |
Donate link: https://www.paypal.me/Kaludi/25
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.0.21
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
191 |
|
192 |
== Changelog ==
|
193 |
|
194 |
+
= 1.0.21 (4th February 2020) =
|
195 |
+
* Fixed: Fatal error when AMP theme framework is active #4128
|
196 |
+
|
197 |
+
= 1.0.20 (31st January 2020) =
|
198 |
+
* Improvement: Filter added to Modify the location of the theme files from plugin older. #4091
|
199 |
+
* Improvement: Cache Should auto clear when any plugin is activated/deactivated #4046
|
200 |
+
* Improvement: Need to add nofollow feature in cookie notification option #3612
|
201 |
* Fixed: Pages won't save apostophies in AMP page builder text module. #4074
|
|
|
202 |
* Fixed: Warring in console : [DOM] Found 2 elements with non-unique id #amp-search #3946
|
203 |
|
204 |
= 1.0.19 (29th January 2020) =
|