diff --git a/README.md b/README.md index d3a8a1490..4b852606c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Contributors: mohammed_kaludi, ahmedkaludi Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google Requires at least: 3.0 Tested up to: 4.6.1 -Stable tag: 0.8.2 +Stable tag: 0.8.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -110,6 +110,10 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F == Changelog == += 0.8.3 = +* Prefix added in the Content filter +* Extra space after quote in Ads + = 0.8.2 = * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/ * Custom AMP FrontPage diff --git a/accelerated-moblie-pages.php b/accelerated-moblie-pages.php index 9407dd822..8833f7bf1 100644 --- a/accelerated-moblie-pages.php +++ b/accelerated-moblie-pages.php @@ -3,7 +3,7 @@ Plugin Name: Accelerated Mobile Pages Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/ Description: AMP Toolbox - Accelerated Mobile Pages for WordPress -Version: 0.8.2 +Version: 0.8.3 Author: Ahmed Kaludi, Mohammed Kaludi Author URI: http://ampforwp.com/ License: GPL2 @@ -60,8 +60,8 @@ function ampforwp_plugin_init() { /**/ // Strip the styles -add_filter( 'the_content', 'the_content_filter', 20 ); -function the_content_filter( $content ) { +add_filter( 'the_content', 'ampforwp_the_content_filter', 20 ); +function ampforwp_the_content_filter( $content ) { $content = preg_replace('/property[^>]*/', '', $content); $content = preg_replace('/vocab[^>]*/', '', $content); $content = preg_replace('#(.*?)#i', '', $content); diff --git a/readme.txt b/readme.txt index 7f39c0b72..d21fc9900 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: mohammed_kaludi, ahmedkaludi Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google Requires at least: 3.0 Tested up to: 4.6.1 -Stable tag: 0.8.2 +Stable tag: 0.8.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -107,6 +107,10 @@ Please check if you have "Pretty Permalinks" enabled. If not then activate it. F == Changelog == += 0.8.3 = +* Prefix added in the Content filter +* Extra space after quote in Ads + = 0.8.2 = * Proper Details at http://ampforwp.com/blog/the-custom-frontpage/ * Custom AMP FrontPage diff --git a/templates/features.php b/templates/features.php index 3e9908b22..41649467e 100644 --- a/templates/features.php +++ b/templates/features.php @@ -214,7 +214,7 @@ function ampforwp_header_advert() { type="adsense" width='. $advert_width .' height='. $advert_height . ' data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-1'].'" - data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-1'] .' ">'; + data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-1'] .'">'; $output .= ''; $output .= ' '; echo $output; @@ -255,7 +255,7 @@ function ampforwp_footer_advert() { type="adsense" width='. $advert_width .' height='. $advert_height . ' data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-2'].'" - data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-2'] .' ">'; + data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-2'] .'">'; $output .= ''; $output .= ' '; echo $output; @@ -296,7 +296,7 @@ function ampforwp_before_post_content_advert() { type="adsense" width='. $advert_width .' height='. $advert_height . ' data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-3'].'" - data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-3'] .' ">'; + data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-3'] .'">'; $output .= ''; $output .= ' '; echo $output; @@ -337,7 +337,7 @@ function ampforwp_after_post_content_advert() { type="adsense" width='. $advert_width .' height='. $advert_height . ' data-ad-client="'. $redux_builder_amp['enable-amp-ads-text-feild-client-4'].'" - data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-4'] .' ">'; + data-ad-slot="'. $redux_builder_amp['enable-amp-ads-text-feild-slot-4'] .'">'; $output .= ''; $output .= ' '; echo $output;