AMP for WP – Accelerated Mobile Pages - Version 0.8.3

Version Description

  • Prefix added in the Content filter
  • Extra space after quote in Ads
Download this release

Release Info

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

Code changes from version 0.8.2 to 0.8.3

README.md CHANGED
@@ -6,7 +6,7 @@ Contributors: mohammed_kaludi, ahmedkaludi
6
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
7
  Requires at least: 3.0
8
  Tested up to: 4.6.1
9
- Stable tag: 0.8.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -110,6 +110,10 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
110
 
111
 
112
  == Changelog ==
 
 
 
 
113
  = 0.8.2 =
114
  * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/
115
  * Custom AMP FrontPage
6
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
7
  Requires at least: 3.0
8
  Tested up to: 4.6.1
9
+ Stable tag: 0.8.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
110
 
111
 
112
  == Changelog ==
113
+ = 0.8.3 =
114
+ * Prefix added in the Content filter
115
+ * Extra space after quote in Ads
116
+
117
  = 0.8.2 =
118
  * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/
119
  * Custom AMP FrontPage
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 Toolbox - Accelerated Mobile Pages for WordPress
6
- Version: 0.8.2
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  License: GPL2
@@ -60,8 +60,8 @@ add_action('init','ampforwp_plugin_init',9);
60
  /**/
61
 
62
  // Strip the styles
63
- add_filter( 'the_content', 'the_content_filter', 20 );
64
- function the_content_filter( $content ) {
65
  $content = preg_replace('/property[^>]*/', '', $content);
66
  $content = preg_replace('/vocab[^>]*/', '', $content);
67
  $content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP Toolbox - Accelerated Mobile Pages for WordPress
6
+ Version: 0.8.3
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: http://ampforwp.com/
9
  License: GPL2
60
  /**/
61
 
62
  // Strip the styles
63
+ add_filter( 'the_content', 'ampforwp_the_content_filter', 20 );
64
+ function ampforwp_the_content_filter( $content ) {
65
  $content = preg_replace('/property[^>]*/', '', $content);
66
  $content = preg_replace('/vocab[^>]*/', '', $content);
67
  $content = preg_replace('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mohammed_kaludi, ahmedkaludi
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
4
  Requires at least: 3.0
5
  Tested up to: 4.6.1
6
- Stable tag: 0.8.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -107,6 +107,10 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F
107
 
108
 
109
  == Changelog ==
 
 
 
 
110
  = 0.8.2 =
111
  * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/
112
  * Custom AMP FrontPage
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google
4
  Requires at least: 3.0
5
  Tested up to: 4.6.1
6
+ Stable tag: 0.8.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
107
 
108
 
109
  == Changelog ==
110
+ = 0.8.3 =
111
+ * Prefix added in the Content filter
112
+ * Extra space after quote in Ads
113
+
114
  = 0.8.2 =
115
  * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/
116
  * Custom AMP FrontPage
templates/features.php CHANGED
@@ -214,7 +214,7 @@
214
  type="adsense"
215
  width='. $advert_width .' height='. $advert_height . '
216
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-1'].'"
217
- data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-1'] .' ">';
218
  $output .= '</amp-ad>';
219
  $output .= ' </div>';
220
  echo $output;
@@ -255,7 +255,7 @@
255
  type="adsense"
256
  width='. $advert_width .' height='. $advert_height . '
257
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-2'].'"
258
- data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-2'] .' ">';
259
  $output .= '</amp-ad>';
260
  $output .= ' </div>';
261
  echo $output;
@@ -296,7 +296,7 @@
296
  type="adsense"
297
  width='. $advert_width .' height='. $advert_height . '
298
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-3'].'"
299
- data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-3'] .' ">';
300
  $output .= '</amp-ad>';
301
  $output .= ' </div>';
302
  echo $output;
@@ -337,7 +337,7 @@
337
  type="adsense"
338
  width='. $advert_width .' height='. $advert_height . '
339
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-4'].'"
340
- data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-4'] .' ">';
341
  $output .= '</amp-ad>';
342
  $output .= ' </div>';
343
  echo $output;
214
  type="adsense"
215
  width='. $advert_width .' height='. $advert_height . '
216
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-1'].'"
217
+ data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-1'] .'">';
218
  $output .= '</amp-ad>';
219
  $output .= ' </div>';
220
  echo $output;
255
  type="adsense"
256
  width='. $advert_width .' height='. $advert_height . '
257
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-2'].'"
258
+ data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-2'] .'">';
259
  $output .= '</amp-ad>';
260
  $output .= ' </div>';
261
  echo $output;
296
  type="adsense"
297
  width='. $advert_width .' height='. $advert_height . '
298
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-3'].'"
299
+ data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-3'] .'">';
300
  $output .= '</amp-ad>';
301
  $output .= ' </div>';
302
  echo $output;
337
  type="adsense"
338
  width='. $advert_width .' height='. $advert_height . '
339
  data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-4'].'"
340
+ data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-4'] .'">';
341
  $output .= '</amp-ad>';
342
  $output .= ' </div>';
343
  echo $output;