AdSense Plugin WP QUADS - Version 1.8.0

Version Description

  • Fix: If post has more than 10 blockquotes the resulting blockquote order will be wrong
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 1.8.0
Comparing to
See all releases

Code changes from version 1.7.9 to 1.8.0

includes/template-functions.php CHANGED
@@ -385,7 +385,8 @@ function quads_filter_default_ads( $content ) {
385
  if(!empty($blockquotes)){
386
  $bId = 0;
387
  foreach($blockquotes[0] as $blockquote){
388
- $content = str_replace(trim($blockquote), "#QUADSBLOCKQUOTE#" . $bId, $content);
 
389
  $bId++;
390
  }
391
  }
@@ -411,7 +412,8 @@ function quads_filter_default_ads( $content ) {
411
  if(!empty($blockquotes)){
412
  $bId = 0;
413
  foreach($blockquotes[0] as $blockquote){
414
- $content = str_replace('#QUADSBLOCKQUOTE#' . $bId, trim($blockquote), $content);
 
415
  $bId++;
416
  }
417
  }
385
  if(!empty($blockquotes)){
386
  $bId = 0;
387
  foreach($blockquotes[0] as $blockquote){
388
+ $replace = "#QUADSBLOCKQUOTE" . $bId . '#';
389
+ $content = str_replace(trim($blockquote), $replace, $content);
390
  $bId++;
391
  }
392
  }
412
  if(!empty($blockquotes)){
413
  $bId = 0;
414
  foreach($blockquotes[0] as $blockquote){
415
+ $search = '#QUADSBLOCKQUOTE' . $bId . '#';
416
+ $content = str_replace($search, trim($blockquote), $content);
417
  $bId++;
418
  }
419
  }
quick-adsense-reloaded.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
- * Version: 1.7.9
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -38,7 +38,7 @@ if( !defined( 'ABSPATH' ) )
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
- define( 'QUADS_VERSION', '1.7.9' );
42
  }
43
 
44
  // Plugin name
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
+ * Version: 1.8.0
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
+ define( 'QUADS_VERSION', '1.8.0' );
42
  }
43
 
44
  // Plugin name
readme.txt CHANGED
@@ -10,7 +10,7 @@ Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inser
10
  Requires at least: 3.6+
11
  Tested up to: 4.9
12
  Requires PHP: 5.3
13
- Stable tag: 1.7.9
14
 
15
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
16
 
@@ -130,6 +130,9 @@ Alternative Installation:
130
 
131
  == Changelog ==
132
 
 
 
 
133
  = 1.7.9 =
134
  * New: Add up to 11 paragraph ads with WP QUADS PRO
135
  * New: Fix tag condition in wp quads pro
10
  Requires at least: 3.6+
11
  Tested up to: 4.9
12
  Requires PHP: 5.3
13
+ Stable tag: 1.8.0
14
 
15
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
16
 
130
 
131
  == Changelog ==
132
 
133
+ = 1.8.0 =
134
+ * Fix: If post has more than 10 blockquotes the resulting blockquote order will be wrong
135
+
136
  = 1.7.9 =
137
  * New: Add up to 11 paragraph ads with WP QUADS PRO
138
  * New: Fix tag condition in wp quads pro