AMP for WP – Accelerated Mobile Pages - Version 1.0.77.46

Version Description

(28th June 2022) = * Fixed: Reduced the execution of JS in youtube embeds #5287 * Fixed: Instagram embeds not working when added with iframe #5289 * Fixed: Subchild menu items does not expand with UberMenu plugin * Fixed: Incorrect default value in TPD #5286 * Fixed: Debug Warnings - Undefined array-key: row #5283

Download this release

Release Info

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

Code changes from version 1.0.77.45 to 1.0.77.46

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: 6.0
7
- Stable tag: 1.0.77.45
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -197,6 +197,13 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
197
 
198
  == Changelog ==
199
 
 
 
 
 
 
 
 
200
  = 1.0.77.45 (13th June 2022) =
201
  * Fixed: Conflict issue with WPML #5274
202
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 6.0
7
+ Stable tag: 1.0.77.46
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.46 (28th June 2022) =
201
+ * Fixed: Reduced the execution of JS in youtube embeds #5287
202
+ * Fixed: Instagram embeds not working when added with iframe #5289
203
+ * Fixed: Subchild menu items does not expand with UberMenu plugin
204
+ * Fixed: Incorrect default value in TPD #5286
205
+ * Fixed: Debug Warnings - Undefined array-key: row #5283
206
+
207
  = 1.0.77.45 (13th June 2022) =
208
  * Fixed: Conflict issue with WPML #5274
209
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279
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.45
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.45');
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.46
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.46');
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,12 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
3
  = 1.0.77.45 (13th June 2022) =
4
  * Fixed: Conflict issue with WPML #5274
5
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279
1
  == Changelog ==
2
 
3
+ = 1.0.77.46 (28th June 2022) =
4
+ * Fixed: Reduced the execution of JS in youtube embeds #5287
5
+ * Fixed: Instagram embeds not working when added with iframe #5289
6
+ * Fixed: Subchild menu items does not expand with UberMenu plugin
7
+ * Fixed: Incorrect default value in TPD #5286
8
+ * Fixed: Debug Warnings - Undefined array-key: row #5283
9
+
10
  = 1.0.77.45 (13th June 2022) =
11
  * Fixed: Conflict issue with WPML #5274
12
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279
components/menu/menu.php CHANGED
@@ -99,9 +99,6 @@ function amp_menu_styles(){
99
  .amp-menu li.ubermenu-has-submenu-drop ul {
100
  display: none;
101
  }
102
- .m-menu .amp-menu [id^=drop]:checked + label + ul ul,.amp-menu [id^=drop]:checked + label + ul ul {
103
- display: block;
104
- }
105
 
106
  ul.ubermenu-submenu {
107
  margin-left: 10px;
99
  .amp-menu li.ubermenu-has-submenu-drop ul {
100
  display: none;
101
  }
 
 
 
102
 
103
  ul.ubermenu-submenu {
104
  margin-left: 10px;
includes/features/advertisement/ads-options.php CHANGED
@@ -120,8 +120,8 @@ if (!function_exists('adsforwp_admin_notice')) {
120
  'title' => esc_html__('Publisher ID', 'accelerated-mobile-pages'),
121
  'desc' => sprintf('%s <a href="%s" target="_blank">%s</a>',
122
  esc_html__('Obtain your Publisher ID through', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-the-publisher-desk-ads-in-amp/'), esc_html__('these steps','accelerated-mobile-pages')),
123
- 'default' => '',
124
- 'placeholder'=> '337'
125
  );
126
 
127
  $fields[] = array(
120
  'title' => esc_html__('Publisher ID', 'accelerated-mobile-pages'),
121
  'desc' => sprintf('%s <a href="%s" target="_blank">%s</a>',
122
  esc_html__('Obtain your Publisher ID through', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-the-publisher-desk-ads-in-amp/'), esc_html__('these steps','accelerated-mobile-pages')),
123
+ 'default' => '10001',
124
+ 'placeholder'=> '10001'
125
  );
126
 
127
  $fields[] = array(
includes/features/performance/performance-functions.php CHANGED
@@ -102,6 +102,13 @@ function ampforwp_minify_html_output($content_buffer){
102
  $content_buffer = preg_replace('/<\/p>/s', '</p></section>', $content_buffer);
103
  $content_buffer = preg_replace('/<div\sclass="wp-faq-schema-items">(.*?)<\/div>/s', '<amp-accordion expand-single-section>$1</amp-accordion>', $content_buffer);
104
  }
 
 
 
 
 
 
 
105
  global $redux_builder_amp;
106
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
107
  return $content_buffer;
102
  $content_buffer = preg_replace('/<\/p>/s', '</p></section>', $content_buffer);
103
  $content_buffer = preg_replace('/<div\sclass="wp-faq-schema-items">(.*?)<\/div>/s', '<amp-accordion expand-single-section>$1</amp-accordion>', $content_buffer);
104
  }
105
+ if(preg_match('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', $content_buffer)){
106
+ $content_buffer = preg_replace('/<amp-iframe(.*?)src="(.*?)embed\/(.*?)"(.*?)width="(.*?)"(.*?)height="(.*?)"(.*?)<\/amp-iframe>/', '<amp-youtube data-videoid="$3" layout="responsive" width="$5" height="$7"></amp-youtube>', $content_buffer);
107
+ }
108
+ if(preg_match('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', $content_buffer)){
109
+ $content_buffer = preg_replace('/<amp-iframe\sclass="instagram-media(.*?)"(.*?)src="https:\/\/instagram.com\/p\/(.*?)\/(.*?)"(.*?)><\/amp-iframe>/', '<amp-instagram data-shortcode="$3" data-captioned width="400" height="400"layout="responsive"></amp-instagram>', $content_buffer);
110
+ }
111
+
112
  global $redux_builder_amp;
113
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
114
  return $content_buffer;
pagebuilder/amp-page-builder.php CHANGED
@@ -85,7 +85,7 @@ function ampforwp_call_page_builder(){
85
  $totalmodules = 1;
86
  if(!empty($previousData)){
87
  $jsonData = json_decode($previousData,true);
88
- if(is_array($jsonData) && count($jsonData['rows'])>0){
89
  $totalRows = $jsonData['totalrows'];
90
  $totalmodules = $jsonData['totalmodules'];
91
  $previousData = json_encode($jsonData);
85
  $totalmodules = 1;
86
  if(!empty($previousData)){
87
  $jsonData = json_decode($previousData,true);
88
+ if(is_array($jsonData) && isset($jsonData['rows']) && count($jsonData['rows'])>0){
89
  $totalRows = $jsonData['totalrows'];
90
  $totalmodules = $jsonData['totalmodules'];
91
  $previousData = json_encode($jsonData);
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: 6.0
7
- Stable tag: 1.0.77.45
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,13 @@ You can contact us from [here](https://ampforwp.com/contact/)
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
 
197
  = 1.0.77.45 (13th June 2022) =
198
  * Fixed: Conflict issue with WPML #5274
199
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 6.0
7
+ Stable tag: 1.0.77.46
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.46 (28th June 2022) =
198
+ * Fixed: Reduced the execution of JS in youtube embeds #5287
199
+ * Fixed: Instagram embeds not working when added with iframe #5289
200
+ * Fixed: Subchild menu items does not expand with UberMenu plugin
201
+ * Fixed: Incorrect default value in TPD #5286
202
+ * Fixed: Debug Warnings - Undefined array-key: row #5283
203
+
204
  = 1.0.77.45 (13th June 2022) =
205
  * Fixed: Conflict issue with WPML #5274
206
  * Fixed: Page builder modal is getting hidden below the header of the post/page editor. #5279