AMP for WP – Accelerated Mobile Pages - Version 1.0.77.33

Version Description

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 1.0.77.33
Comparing to
See all releases

Code changes from version 1.0.77.32 to 1.0.77.33

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.32
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.32 (11th December 2021) =
201
  * Fixed: Code improvements in AMP pagebuilder #5179
202
 
@@ -205,12 +209,4 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
205
  * Fixed: PHP Notice: Undefined index: rgba #5175
206
  * Fixed: Optional added for font display in google fonts #5176
207
 
208
- 1.0.77.30 (25th November 2021) =
209
- * Improvements: Added Filter to modify title in AMP #5170
210
- * Fixed: Whitelisted amp-render tag #5171
211
- * Fixed: Featured image not appearing in loop with Offload Media Lite #5153
212
- * Fixed: Infinite scroll showing posts from different categories also when same category is selected #5168
213
- * Fixed: Webp images not appearing in preload with WEBP express plugin #5165
214
- * Fixed: pagination 404 issue with infinite scroll #5167
215
-
216
  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.33
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.33 (15th December 2021) =
201
+ * Fixed: Code improvements in AMP options panel #5179
202
+ * Fixed: Stylesheet errors when using Qoxag theme #5177
203
+
204
  1.0.77.32 (11th December 2021) =
205
  * Fixed: Code improvements in AMP pagebuilder #5179
206
 
209
  * Fixed: PHP Notice: Undefined index: rgba #5175
210
  * Fixed: Optional added for font display in google fonts #5176
211
 
 
 
 
 
 
 
 
 
212
  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.32
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.32');
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.33
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.33');
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.32 (11th December 2021) =
4
  * Fixed: Code improvements in AMP pagebuilder #5179
5
 
1
  == Changelog ==
2
 
3
+ 1.0.77.33 (15th December 2021) =
4
+ * Fixed: Code improvements in AMP options panel #5179
5
+ * Fixed: Stylesheet errors when using Qoxag theme #5177
6
+
7
  1.0.77.32 (11th December 2021) =
8
  * Fixed: Code improvements in AMP pagebuilder #5179
9
 
includes/features/performance/performance-functions.php CHANGED
@@ -85,6 +85,9 @@ function ampforwp_minify_html_output($content_buffer){
85
  if(class_exists('Avada') && preg_match('/<lite-youtube(.*?)videoid="(.*?)"(.*?)><\/lite-youtube>/s', $content_buffer)){
86
  $content_buffer = preg_replace('/<lite-youtube(.*?)videoid="(.*?)"(.*?)><\/lite-youtube>/', '<amp-youtube width="480" height="270" layout="responsive" data-videoid="$2"></amp-youtube>', $content_buffer);
87
  }
 
 
 
88
  global $redux_builder_amp;
89
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
90
  return $content_buffer;
85
  if(class_exists('Avada') && preg_match('/<lite-youtube(.*?)videoid="(.*?)"(.*?)><\/lite-youtube>/s', $content_buffer)){
86
  $content_buffer = preg_replace('/<lite-youtube(.*?)videoid="(.*?)"(.*?)><\/lite-youtube>/', '<amp-youtube width="480" height="270" layout="responsive" data-videoid="$2"></amp-youtube>', $content_buffer);
87
  }
88
+ if (function_exists('qoxag_setup')) {
89
+ $content_buffer = preg_replace('/<link rel="stylesheet"(.*?)href="(.*?).css">/', '', $content_buffer);
90
+ }
91
  global $redux_builder_amp;
92
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
93
  return $content_buffer;
includes/options/redux-core/framework.php CHANGED
@@ -2974,6 +2974,15 @@
2974
  $plugin_options[ $field['id'] ] = 0;
2975
  }
2976
  }
 
 
 
 
 
 
 
 
 
2977
 
2978
  // if ( isset ( $field['type'] ) && $field['type'] == 'typography' ) {
2979
  // if ( ! is_array( $plugin_options[ $field['id'] ] ) && ! empty( $plugin_options[ $field['id'] ] ) ) {
2974
  $plugin_options[ $field['id'] ] = 0;
2975
  }
2976
  }
2977
+ if ( isset ( $field['type'] ) && $field['type'] == 'ace_editor' ) {
2978
+ if(isset($field['mode']) && in_array($field['mode'], array('css','javascript')) ) {
2979
+ $plugin_options[ $field['id'] ]= strip_tags($plugin_options[ $field['id'] ]);
2980
+ }
2981
+
2982
+ }
2983
+ if ( isset ( $field['type'] ) && $field['type'] == 'text' ) {
2984
+ $plugin_options[ $field['id'] ]= str_replace("=", "", $plugin_options[ $field['id'] ]);
2985
+ }
2986
 
2987
  // if ( isset ( $field['type'] ) && $field['type'] == 'typography' ) {
2988
  // if ( ! is_array( $plugin_options[ $field['id'] ] ) && ! empty( $plugin_options[ $field['id'] ] ) ) {
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.32
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.32 (11th December 2021) =
198
  * Fixed: Code improvements in AMP pagebuilder #5179
199
 
@@ -202,12 +206,4 @@ You can contact us from [here](https://ampforwp.com/contact/)
202
  * Fixed: PHP Notice: Undefined index: rgba #5175
203
  * Fixed: Optional added for font display in google fonts #5176
204
 
205
- 1.0.77.30 (25th November 2021) =
206
- * Improvements: Added Filter to modify title in AMP #5170
207
- * Fixed: Whitelisted amp-render tag #5171
208
- * Fixed: Featured image not appearing in loop with Offload Media Lite #5153
209
- * Fixed: Infinite scroll showing posts from different categories also when same category is selected #5168
210
- * Fixed: Webp images not appearing in preload with WEBP express plugin #5165
211
- * Fixed: pagination 404 issue with infinite scroll #5167
212
-
213
  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.33
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.33 (15th December 2021) =
198
+ * Fixed: Code improvements in AMP options panel #5179
199
+ * Fixed: Stylesheet errors when using Qoxag theme #5177
200
+
201
  1.0.77.32 (11th December 2021) =
202
  * Fixed: Code improvements in AMP pagebuilder #5179
203
 
206
  * Fixed: PHP Notice: Undefined index: rgba #5175
207
  * Fixed: Optional added for font display in google fonts #5176
208
 
 
 
 
 
 
 
 
 
209
  Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)