Version Description
(23rd September 2021) = * Improvements: Added Filter to disable AMP for all categories except one #5139 * Improvements: Added Ninja Form in the description of contact form module #5138 * Fixed: Basic/Advance popup shows everytime when visiting option panel #5143 * Fixed: Renewal link redirecting to 404 from options panel #5140 * Fixed: Incorrect URL while using Matomo analytics #5136 * Fixed: Validation error in the alt tag with Transposh plugin #5135 * Fixed: Some design issues on one specific users #5134 * Fixed: Debug Warnings - Use of undefined constant AUTH_KEY and SECURE_AUTH_KEY #5035
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 1.0.77.24 |
Comparing to | |
See all releases |
Code changes from version 1.0.77.23 to 1.0.77.24
- README.md +11 -8
- accelerated-moblie-pages.php +2 -2
- changelog.txt +10 -0
- components/featured-image/featured-image.php +3 -0
- includes/features/analytics/analytics-functions.php +5 -1
- includes/features/functions.php +5 -2
- includes/options/redux-core/assets/css/redux-admin.css +5 -2
- includes/options/redux-core/inc/class.redux_helpers.php +7 -0
- includes/options/redux-core/inc/extensions/import_export/extension_import_export.php +2 -2
- includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php +1 -1
- includes/updater/update.php +1 -1
- pagebuilder/modules/contact-form-shortcode-module.php +1 -1
- readme.txt +11 -8
- templates/features.php +8 -0
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.8
|
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,16 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
= 1.0.77.23 (16th September 2021) =
|
201 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
202 |
* Improvements: Added an option to move sponsorship label above the ad
|
@@ -205,11 +215,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
|
|
205 |
= 1.0.77.22 (6th September 2021) =
|
206 |
* Fixed: Validation error with rankmath's "open external links in new tab" option #5129
|
207 |
|
208 |
-
= 1.0.77.21 (6th September 2021) =
|
209 |
-
* Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
|
210 |
-
* Fixed: Missing rel noopener attribute in links #5125
|
211 |
-
* Fixed: Incorrect canonical for Homepage if WordPress installation is another folder #5122
|
212 |
-
* Fixed: No data hero attribute on featured image of default image #5121
|
213 |
-
* Fixed: Debug log errors #5124
|
214 |
-
|
215 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
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.24
|
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.24 (23rd September 2021) =
|
201 |
+
* Improvements: Added Filter to disable AMP for all categories except one #5139
|
202 |
+
* Improvements: Added Ninja Form in the description of contact form module #5138
|
203 |
+
* Fixed: Basic/Advance popup shows everytime when visiting option panel #5143
|
204 |
+
* Fixed: Renewal link redirecting to 404 from options panel #5140
|
205 |
+
* Fixed: Incorrect URL while using Matomo analytics #5136
|
206 |
+
* Fixed: Validation error in the alt tag with Transposh plugin #5135
|
207 |
+
* Fixed: Some design issues on one specific users #5134
|
208 |
+
* Fixed: Debug Warnings - Use of undefined constant AUTH_KEY and SECURE_AUTH_KEY #5035
|
209 |
+
|
210 |
= 1.0.77.23 (16th September 2021) =
|
211 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
212 |
* Improvements: Added an option to move sponsorship label above the ad
|
215 |
= 1.0.77.22 (6th September 2021) =
|
216 |
* Fixed: Validation error with rankmath's "open external links in new tab" option #5129
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
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.24
|
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.24');
|
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,15 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.0.77.23 (16th September 2021) =
|
4 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
5 |
* Improvements: Added an option to move sponsorship label above the ad
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.0.77.24 (23rd September 2021) =
|
4 |
+
* Improvements: Added Filter to disable AMP for all categories except one #5139
|
5 |
+
* Improvements: Added Ninja Form in the description of contact form module #5138
|
6 |
+
* Fixed: Basic/Advance popup shows everytime when visiting option panel #5143
|
7 |
+
* Fixed: Renewal link redirecting to 404 from options panel #5140
|
8 |
+
* Fixed: Incorrect URL while using Matomo analytics #5136
|
9 |
+
* Fixed: Validation error in the alt tag with Transposh plugin #5135
|
10 |
+
* Fixed: Some design issues on one specific users #5134
|
11 |
+
* Fixed: Debug Warnings - Use of undefined constant AUTH_KEY and SECURE_AUTH_KEY #5035
|
12 |
+
|
13 |
= 1.0.77.23 (16th September 2021) =
|
14 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
15 |
* Improvements: Added an option to move sponsorship label above the ad
|
components/featured-image/featured-image.php
CHANGED
@@ -48,6 +48,9 @@ function ampforwp_framework_get_featured_image(){
|
|
48 |
else{
|
49 |
$alt = get_the_title( $post_id );
|
50 |
}
|
|
|
|
|
|
|
51 |
$alt = convert_chars( stripslashes( $alt ) );
|
52 |
if(function_exists('fifu_show_elements')){
|
53 |
$fifu_image_url = get_post_meta($post_id, 'fifu_image_url', true);
|
48 |
else{
|
49 |
$alt = get_the_title( $post_id );
|
50 |
}
|
51 |
+
if(class_exists('transposh_plugin')){
|
52 |
+
$alt = strtok($alt, " ");
|
53 |
+
}
|
54 |
$alt = convert_chars( stripslashes( $alt ) );
|
55 |
if(function_exists('fifu_show_elements')){
|
56 |
$fifu_image_url = get_post_meta($post_id, 'fifu_image_url', true);
|
includes/features/analytics/analytics-functions.php
CHANGED
@@ -104,7 +104,11 @@ function ampforwp_analytics() {
|
|
104 |
$idsite = ampforwp_get_setting('pa-feild');
|
105 |
$title = urlencode(get_the_title());
|
106 |
$url = get_the_permalink();
|
107 |
-
|
|
|
|
|
|
|
|
|
108 |
$rand = rand(1111,9999);
|
109 |
$referer = $url;
|
110 |
if(isset($_SERVER['HTTP_REFERER'])) {
|
104 |
$idsite = ampforwp_get_setting('pa-feild');
|
105 |
$title = urlencode(get_the_title());
|
106 |
$url = get_the_permalink();
|
107 |
+
if (function_exists( 'is_ssl' ) && !is_ssl()) {
|
108 |
+
$url = ampforwp_remove_protocol(ampforwp_url_controller($url));
|
109 |
+
}else{
|
110 |
+
ampforwp_url_controller($url);
|
111 |
+
}
|
112 |
$rand = rand(1111,9999);
|
113 |
$referer = $url;
|
114 |
if(isset($_SERVER['HTTP_REFERER'])) {
|
includes/features/functions.php
CHANGED
@@ -111,8 +111,11 @@ function ampforwp_add_admin_styling($hook_suffix){
|
|
111 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
|
112 |
$redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
|
113 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
116 |
wp_enqueue_script( 'wp-color-picker' );
|
117 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
118 |
}
|
111 |
wp_localize_script( 'ampforwp_admin_js', 'amp_fields', array($amp_fields));
|
112 |
$redux_data = apply_filters("ampforwp_custom_localize_data", $redux_data);
|
113 |
wp_localize_script( 'ampforwp_admin_js', 'redux_data', $redux_data );
|
114 |
+
wp_localize_script( 'ampforwp_admin_js', 'ampforwp_nonce',
|
115 |
+
array(
|
116 |
+
'security' => wp_create_nonce( 'ampforwp-verify-request' )
|
117 |
+
)
|
118 |
+
);
|
119 |
wp_enqueue_script( 'wp-color-picker' );
|
120 |
wp_enqueue_script( 'ampforwp_admin_js' );
|
121 |
}
|
includes/options/redux-core/assets/css/redux-admin.css
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
float: left;}.redux-main .hide{display:none }.redux-main .redux-field-container{ padding: 18px 50px 18px 0;}.redux-main .mini,.redux-main input[type=text].mini{width:60px;text-align:center}.redux-main input{line-height:19px}.redux-main img{max-width:100%;height:auto;width:auto !important}.redux-main .select2-default{width:auto !important}.redux-main .showDefaults{display:block;font-weight:normal;font-size:.8em;color:#888}.redux-main span.description{font-style: normal;
|
40 |
left: 18px;}.redux-main #redux-system-info textarea{min-height:730px;width:100%}.redux-main .field-desc{clear:both;font-size:13px;line-height: 20px;}.redux-main .data-full li{width:100%}.redux-main .data-half li{width:50%;float:left}.redux-main .data-third li{width:33.3%;float:left}.redux-main .data-quarter li{width:25%;float:left}.redux-main .ui-helper-hidden-accessible{top:inherit}.redux-main .form-table{clear:none;margin-top:0px !important}.redux-main .form-table tr:first-child th,.redux-main .form-table tr:first-child td{padding-top:0}.redux-main .input-append input{border-right:0;margin-bottom:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;float:left;margin-top:0;display:block}.redux-main .input-append .add-on{border-top-right-radius:3px;border-bottom-right-radius:3px;margin-left:-2px;padding-top:4px !important;padding-bottom:2px !important}.redux-main .input-prepend input{border-left:0;margin-bottom:0;border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0;padding-top:2px;padding-bottom:5px;float:left;margin-top:0;display:block}.redux-main .input-prepend .add-on{border-top-left-radius:3px;border-bottom-left-radius:3px;float:left}.redux-main .input-append{margin-right:10px;font-size:0;white-space:nowrap;float:left;display:inline-block;margin-bottom:6px}.redux-main .input-append .add-on,.redux-main .input-prepend .add-on{width:auto;display:inline-block;min-width:16px;padding:3px 4px;font-size:12px;font-weight:400;line-height:20px;text-align:center;text-shadow:0 1px 0 #ffffff;background-color:#eeeeee;border:1px solid #cccccc}.redux-main .input-prepend{font-size:0;white-space:nowrap;float:left;display:inline-block;margin-bottom:6px}.redux-sidebar{width:202px;float:left}.redux-sidebar .redux-group-menu{margin-top:0 !important}
|
41 |
|
42 |
-
.redux-sidebar .redux-group-menu li{margin-top:0}.redux-sidebar .redux-group-menu li.active a,.redux-sidebar .redux-group-menu li.active a:hover,.redux-sidebar .redux-group-menu li.activeChild a,.redux-sidebar .redux-group-menu li.activeChild a:hover{
|
43 |
.redux-sidebar .redux-group-tab-link-a i{
|
44 |
vertical-align: middle;
|
45 |
font-size: 24px;
|
@@ -1557,4 +1557,7 @@ doc-cnt h1 , .doc-cnt p{
|
|
1557 |
position: relative;
|
1558 |
}
|
1559 |
|
1560 |
-
/** Discount Offer CSS Ends **/
|
|
|
|
|
|
39 |
float: left;}.redux-main .hide{display:none }.redux-main .redux-field-container{ padding: 18px 50px 18px 0;}.redux-main .mini,.redux-main input[type=text].mini{width:60px;text-align:center}.redux-main input{line-height:19px}.redux-main img{max-width:100%;height:auto;width:auto !important}.redux-main .select2-default{width:auto !important}.redux-main .showDefaults{display:block;font-weight:normal;font-size:.8em;color:#888}.redux-main span.description{font-style: normal;
|
40 |
left: 18px;}.redux-main #redux-system-info textarea{min-height:730px;width:100%}.redux-main .field-desc{clear:both;font-size:13px;line-height: 20px;}.redux-main .data-full li{width:100%}.redux-main .data-half li{width:50%;float:left}.redux-main .data-third li{width:33.3%;float:left}.redux-main .data-quarter li{width:25%;float:left}.redux-main .ui-helper-hidden-accessible{top:inherit}.redux-main .form-table{clear:none;margin-top:0px !important}.redux-main .form-table tr:first-child th,.redux-main .form-table tr:first-child td{padding-top:0}.redux-main .input-append input{border-right:0;margin-bottom:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;float:left;margin-top:0;display:block}.redux-main .input-append .add-on{border-top-right-radius:3px;border-bottom-right-radius:3px;margin-left:-2px;padding-top:4px !important;padding-bottom:2px !important}.redux-main .input-prepend input{border-left:0;margin-bottom:0;border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0;padding-top:2px;padding-bottom:5px;float:left;margin-top:0;display:block}.redux-main .input-prepend .add-on{border-top-left-radius:3px;border-bottom-left-radius:3px;float:left}.redux-main .input-append{margin-right:10px;font-size:0;white-space:nowrap;float:left;display:inline-block;margin-bottom:6px}.redux-main .input-append .add-on,.redux-main .input-prepend .add-on{width:auto;display:inline-block;min-width:16px;padding:3px 4px;font-size:12px;font-weight:400;line-height:20px;text-align:center;text-shadow:0 1px 0 #ffffff;background-color:#eeeeee;border:1px solid #cccccc}.redux-main .input-prepend{font-size:0;white-space:nowrap;float:left;display:inline-block;margin-bottom:6px}.redux-sidebar{width:202px;float:left}.redux-sidebar .redux-group-menu{margin-top:0 !important}
|
41 |
|
42 |
+
.redux-sidebar .redux-group-menu li{margin-top:0}.redux-sidebar .redux-group-menu li.active a,.redux-sidebar .redux-group-menu li.active a:hover,.redux-sidebar .redux-group-menu li.activeChild a,.redux-sidebar .redux-group-menu li.activeChild a:hover{width:184px;opacity:1}.redux-sidebar .redux-group-menu li.active a li a{background:#333;padding-left:5px}.redux-sidebar .redux-group-menu li.divide{padding:0;border-width:1px 0;border-style:solid;border-bottom-color:#E7E7E7;border-top-color:#F9F9F9}.redux-sidebar .redux-group-menu li a:first-child{border-top:none}.redux-sidebar .redux-group-menu li a{display:block;padding:14px 4px 14px 10px;background:#e0e0e0;background:transparent;border-width:1px 0;border-style:solid;border-bottom-color:#E7E7E7;border-top-color:#F9F9F9;opacity:0.7;color:#555;font-weight:600;text-decoration:none;-webkit-transition:none;transition:none}.redux-sidebar .redux-group-menu li a.custom-tab{background:#f6f6f6}.redux-sidebar .redux-group-menu li a img{width:16px;height:16px;position:absolute;left:15px}.redux-sidebar .redux-group-menu li a:hover{color:#fff;background: #f45c43;background: linear-gradient(to right,#eb3349,#f45c43);opacity:1}.redux-sidebar .redux-menu-warning,.redux-sidebar .redux-menu-error,.redux-sidebar .hasSubSections .extraIconSubsections{display:inline-block;float:right;padding:6px 7px 4px 7px;margin-left:4px;font-family:sans-serif;font-size:9px;font-weight:600;line-height:9px;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;border:0 solid transparent}.redux-sidebar .redux-menu-warning i,.redux-sidebar .redux-menu-error i,.redux-sidebar .hasSubSections .extraIconSubsections i{display: none}.redux-sidebar .redux-menu-error{background-color:#b94a48;color:#f2dede}.redux-sidebar .redux-menu-warning{background-color:#C09853;color:#FCF8E3}.redux-sidebar ul .subsection{display:none}.redux-sidebar .redux-group-tab-link-a{position:relative;outline:0}
|
43 |
.redux-sidebar .redux-group-tab-link-a i{
|
44 |
vertical-align: middle;
|
45 |
font-size: 24px;
|
1557 |
position: relative;
|
1558 |
}
|
1559 |
|
1560 |
+
/** Discount Offer CSS Ends **/
|
1561 |
+
ul#\32 _section_group_li_subsections .redux-group-tab-link-li.active {
|
1562 |
+
background: linear-gradient(to right,#eb3349,#f45c43);
|
1563 |
+
}
|
includes/options/redux-core/inc/class.redux_helpers.php
CHANGED
@@ -41,6 +41,13 @@ namespace ReduxCore\ReduxFramework;
|
|
41 |
return false;
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
public static function isFieldInUse( $parent, $field ) {
|
45 |
foreach ( $parent->sections as $k => $section ) {
|
46 |
if ( ! isset( $section['title'] ) ) {
|
41 |
return false;
|
42 |
}
|
43 |
|
44 |
+
public static function get_auth_key_secret_key() {
|
45 |
+
$key = "";
|
46 |
+
$key .= defined( 'AUTH_KEY' ) ? AUTH_KEY : get_site_url();
|
47 |
+
$key .= defined( 'SECURE_AUTH_KEY' ) ? SECURE_AUTH_KEY : get_site_url();
|
48 |
+
return $key;
|
49 |
+
}
|
50 |
+
|
51 |
public static function isFieldInUse( $parent, $field ) {
|
52 |
foreach ( $parent->sections as $k => $section ) {
|
53 |
if ( ! isset( $section['title'] ) ) {
|
includes/options/redux-core/inc/extensions/import_export/extension_import_export.php
CHANGED
@@ -134,7 +134,7 @@ namespace ReduxCore\ReduxFramework;
|
|
134 |
}
|
135 |
|
136 |
function link_options() {
|
137 |
-
if ( ! isset( $_GET['secret'] ) || $_GET['secret'] != md5( md5(
|
138 |
wp_die( 'Invalid Secret for options use' );
|
139 |
exit;
|
140 |
}
|
@@ -151,7 +151,7 @@ namespace ReduxCore\ReduxFramework;
|
|
151 |
}
|
152 |
|
153 |
public function download_options() {
|
154 |
-
if ( ! isset( $_GET['secret'] ) || $_GET['secret'] != md5( md5(
|
155 |
wp_die( 'Invalid Secret for options use' );
|
156 |
exit;
|
157 |
}
|
134 |
}
|
135 |
|
136 |
function link_options() {
|
137 |
+
if ( ! isset( $_GET['secret'] ) || $_GET['secret'] != md5( md5( Redux_Helpers::get_auth_key_secret_key() ) . '-' . $this->parent->args['opt_name'] ) ) {
|
138 |
wp_die( 'Invalid Secret for options use' );
|
139 |
exit;
|
140 |
}
|
151 |
}
|
152 |
|
153 |
public function download_options() {
|
154 |
+
if ( ! isset( $_GET['secret'] ) || $_GET['secret'] != md5( md5( Redux_Helpers::get_auth_key_secret_key() ) . '-' . $this->parent->args['opt_name'] ) ) {
|
155 |
wp_die( 'Invalid Secret for options use' );
|
156 |
exit;
|
157 |
}
|
includes/options/redux-core/inc/extensions/import_export/import_export/field_import_export.php
CHANGED
@@ -76,7 +76,7 @@ namespace ReduxCore\ReduxFramework;
|
|
76 |
*/
|
77 |
public function render() {
|
78 |
|
79 |
-
$secret = md5( md5(
|
80 |
|
81 |
// No errors please
|
82 |
$defaults = array(
|
76 |
*/
|
77 |
public function render() {
|
78 |
|
79 |
+
$secret = md5( md5( Redux_Helpers::get_auth_key_secret_key() ) . '-' . $this->parent->args['opt_name'] );
|
80 |
|
81 |
// No errors please
|
82 |
$defaults = array(
|
includes/updater/update.php
CHANGED
@@ -74,7 +74,7 @@ function ampforwp_get_licence_activate_update(){
|
|
74 |
esc_html__( 'Your license key expired on %s.', 'accelerated-mobile-pages' ),
|
75 |
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
|
76 |
);
|
77 |
-
$message .= "<a href='"
|
78 |
break;
|
79 |
|
80 |
case 'revoked' :
|
74 |
esc_html__( 'Your license key expired on %s.', 'accelerated-mobile-pages' ),
|
75 |
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
|
76 |
);
|
77 |
+
$message .= "<a href='".esc_url($store_url)."/order/?edd_license_key=".esc_html($license)."'>Renew Link</a>";
|
78 |
break;
|
79 |
|
80 |
case 'revoked' :
|
pagebuilder/modules/contact-form-shortcode-module.php
CHANGED
@@ -139,7 +139,7 @@ $formFields = array(
|
|
139 |
'default' =>'',
|
140 |
'options_details'=>$formSupported,
|
141 |
'content_type'=>'html',
|
142 |
-
'helpmessage' => 'This module requires <a href="https://ampforwp.com/contact-form-7" target="_blank">AMP Contact Form 7</a>
|
143 |
),
|
144 |
);
|
145 |
if(isset($cf7FormsList)){
|
139 |
'default' =>'',
|
140 |
'options_details'=>$formSupported,
|
141 |
'content_type'=>'html',
|
142 |
+
'helpmessage' => 'This module requires <a href="https://ampforwp.com/contact-form-7" target="_blank">AMP Contact Form 7</a> , <a href="https://ampforwp.com/gravity-forms/" target="_blank">AMP Gravity Forms</a> or <a href="https://ampforwp.com/ninja-forms/" target="_blank">Ninja Forms for AMP</a> Extension. <a target="_blank" href="https://ampforwp.com/extensions/">View all the Extensions</a>'
|
143 |
),
|
144 |
);
|
145 |
if(isset($cf7FormsList)){
|
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.8
|
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,16 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
= 1.0.77.23 (16th September 2021) =
|
198 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
199 |
* Improvements: Added an option to move sponsorship label above the ad
|
@@ -202,11 +212,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
|
|
202 |
= 1.0.77.22 (6th September 2021) =
|
203 |
* Fixed: Validation error with rankmath's "open external links in new tab" option #5129
|
204 |
|
205 |
-
= 1.0.77.21 (6th September 2021) =
|
206 |
-
* Fixed: Images not displaying in AMP with Lazy loading of Zeen theme #5126
|
207 |
-
* Fixed: Missing rel noopener attribute in links #5125
|
208 |
-
* Fixed: Incorrect canonical for Homepage if WordPress installation is another folder #5122
|
209 |
-
* Fixed: No data hero attribute on featured image of default image #5121
|
210 |
-
* Fixed: Debug log errors #5124
|
211 |
-
|
212 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
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.24
|
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.24 (23rd September 2021) =
|
198 |
+
* Improvements: Added Filter to disable AMP for all categories except one #5139
|
199 |
+
* Improvements: Added Ninja Form in the description of contact form module #5138
|
200 |
+
* Fixed: Basic/Advance popup shows everytime when visiting option panel #5143
|
201 |
+
* Fixed: Renewal link redirecting to 404 from options panel #5140
|
202 |
+
* Fixed: Incorrect URL while using Matomo analytics #5136
|
203 |
+
* Fixed: Validation error in the alt tag with Transposh plugin #5135
|
204 |
+
* Fixed: Some design issues on one specific users #5134
|
205 |
+
* Fixed: Debug Warnings - Use of undefined constant AUTH_KEY and SECURE_AUTH_KEY #5035
|
206 |
+
|
207 |
= 1.0.77.23 (16th September 2021) =
|
208 |
* Improvements: Added Top Mail Ru analytics support in amp #5130
|
209 |
* Improvements: Added an option to move sponsorship label above the ad
|
212 |
= 1.0.77.22 (6th September 2021) =
|
213 |
* Fixed: Validation error with rankmath's "open external links in new tab" option #5129
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
|
templates/features.php
CHANGED
@@ -3209,6 +3209,13 @@ function ampforwp_auto_add_amp_in_menu_link( $atts, $item, $args ) {
|
|
3209 |
if($item->type=='taxonomy' && !in_array($item->object, ampforwp_get_all_post_types()) ){
|
3210 |
return $atts;
|
3211 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3212 |
$url = $atts['href'];
|
3213 |
if($url){
|
3214 |
$is_external = ampforwp_isexternal($url);
|
@@ -4472,6 +4479,7 @@ add_filter( 'amp_skip_post', 'ampforwp_cat_specific_skip_amp_post', 10, 3 );
|
|
4472 |
function ampforwp_cat_specific_skip_amp_post( $skip, $post_id, $post ) {
|
4473 |
$skip_this_post = '';
|
4474 |
$skip_this_post = ampforwp_posts_to_remove();
|
|
|
4475 |
wp_reset_postdata();
|
4476 |
if ( $skip_this_post ) {
|
4477 |
$skip = true;
|
3209 |
if($item->type=='taxonomy' && !in_array($item->object, ampforwp_get_all_post_types()) ){
|
3210 |
return $atts;
|
3211 |
}
|
3212 |
+
$mob_pres_link = false;
|
3213 |
+
if(function_exists('ampforwp_mobile_redirect_preseve_link')){
|
3214 |
+
$mob_pres_link = ampforwp_mobile_redirect_preseve_link();
|
3215 |
+
}
|
3216 |
+
if(ampforwp_get_setting('ampforwp-amp-takeover') || $mob_pres_link == true){
|
3217 |
+
return $atts;
|
3218 |
+
}
|
3219 |
$url = $atts['href'];
|
3220 |
if($url){
|
3221 |
$is_external = ampforwp_isexternal($url);
|
4479 |
function ampforwp_cat_specific_skip_amp_post( $skip, $post_id, $post ) {
|
4480 |
$skip_this_post = '';
|
4481 |
$skip_this_post = ampforwp_posts_to_remove();
|
4482 |
+
$skip_this_post = apply_filters( 'ampforwp_skip_category', $skip_this_post );
|
4483 |
wp_reset_postdata();
|
4484 |
if ( $skip_this_post ) {
|
4485 |
$skip = true;
|