Skip to content

Commit

Permalink
Merge pull request #138 from ahmedkaludi/0.8.3-Dev
Browse files Browse the repository at this point in the history
0.8.3 Dev
  • Loading branch information
ahmedkaludi authored Sep 28, 2016
2 parents 14158e5 + 339e847 commit 68ad273
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions accelerated-moblie-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('#<comments-count.*?>(.*?)</comments-count>#i', '', $content);
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions templates/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '</amp-ad>';
$output .= ' </div>';
echo $output;
Expand Down Expand Up @@ -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 .= '</amp-ad>';
$output .= ' </div>';
echo $output;
Expand Down Expand Up @@ -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 .= '</amp-ad>';
$output .= ' </div>';
echo $output;
Expand Down Expand Up @@ -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 .= '</amp-ad>';
$output .= ' </div>';
echo $output;
Expand Down

0 comments on commit 68ad273

Please sign in to comment.