Version Description
(14th September 2020) = * Fix: Fixed Language issue. #254
Download this release
Release Info
Developer | wpquads |
Plugin | AdSense Plugin WP QUADS |
Version | 2.0.12.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.12 to 2.0.12.1
- includes/template-functions.php +3 -3
- package.json +1 -1
- quick-adsense-reloaded.php +2 -2
- readme.txt +4 -1
includes/template-functions.php
CHANGED
@@ -2034,7 +2034,7 @@ function remove_ad_from_content($content,$ads,$ads_data='',$position='',$repeat_
|
|
2034 |
$tag = 'p[not(parent::blockquote)]';
|
2035 |
$doc = new DOMDocument( '1.0', $wp_charset );
|
2036 |
libxml_use_internal_errors( true );
|
2037 |
-
|
2038 |
$xpath = new DOMXPath( $doc );
|
2039 |
$items = $xpath->query( '/html/body/' . $tag );
|
2040 |
$whitespaces = json_decode( '"\t\n\r \u00A0"' );
|
@@ -2060,7 +2060,7 @@ if($repeat_paragraph){
|
|
2060 |
$ref_node = $paragraphs[$offset]->nextSibling;
|
2061 |
$ad_dom = new DOMDocument( '1.0', $wp_charset );
|
2062 |
libxml_use_internal_errors( true );
|
2063 |
-
$ad_dom->
|
2064 |
|
2065 |
foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
|
2066 |
$importedNode = $doc->importNode( $importedNode, true );
|
@@ -2072,7 +2072,7 @@ if($repeat_paragraph){
|
|
2072 |
|
2073 |
$ad_dom = new DOMDocument( '1.0', $wp_charset );
|
2074 |
libxml_use_internal_errors( true );
|
2075 |
-
|
2076 |
|
2077 |
foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
|
2078 |
$importedNode = $doc->importNode( $importedNode, true );
|
2034 |
$tag = 'p[not(parent::blockquote)]';
|
2035 |
$doc = new DOMDocument( '1.0', $wp_charset );
|
2036 |
libxml_use_internal_errors( true );
|
2037 |
+
$doc->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));
|
2038 |
$xpath = new DOMXPath( $doc );
|
2039 |
$items = $xpath->query( '/html/body/' . $tag );
|
2040 |
$whitespaces = json_decode( '"\t\n\r \u00A0"' );
|
2060 |
$ref_node = $paragraphs[$offset]->nextSibling;
|
2061 |
$ad_dom = new DOMDocument( '1.0', $wp_charset );
|
2062 |
libxml_use_internal_errors( true );
|
2063 |
+
$ad_dom->loadHTML(mb_convert_encoding('<!DOCTYPE html><html><meta http-equiv="Content-Type" content="text/html; charset=' . $wp_charset . '" /><body>' . $ads, 'HTML-ENTITIES', 'UTF-8'));
|
2064 |
|
2065 |
foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
|
2066 |
$importedNode = $doc->importNode( $importedNode, true );
|
2072 |
|
2073 |
$ad_dom = new DOMDocument( '1.0', $wp_charset );
|
2074 |
libxml_use_internal_errors( true );
|
2075 |
+
$ad_dom->loadHTML(mb_convert_encoding('<!DOCTYPE html><html><meta http-equiv="Content-Type" content="text/html; charset=' . $wp_charset . '" /><body>' . $ads, 'HTML-ENTITIES', 'UTF-8'));
|
2076 |
|
2077 |
foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
|
2078 |
$importedNode = $doc->importNode( $importedNode, true );
|
package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "quick-adsense-reloaded",
|
3 |
-
"version": "2.0.12",
|
4 |
"devDependencies": {
|
5 |
"grunt": "~0.4.5",
|
6 |
"grunt-contrib-clean": "~0.6.0",
|
1 |
{
|
2 |
"name": "quick-adsense-reloaded",
|
3 |
+
"version": "2.0.12.1",
|
4 |
"devDependencies": {
|
5 |
"grunt": "~0.4.5",
|
6 |
"grunt-contrib-clean": "~0.6.0",
|
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: WP Quads
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
-
* Version: 2.0.12
|
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', '2.0.12' );
|
42 |
}
|
43 |
|
44 |
// Plugin name
|
6 |
* Description: Insert Google AdSense and other ad formats fully automatic into your website
|
7 |
* Author: WP Quads
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
+
* Version: 2.0.12.1
|
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', '2.0.12.1' );
|
42 |
}
|
43 |
|
44 |
// Plugin name
|
readme.txt
CHANGED
@@ -10,7 +10,7 @@ Tags: ad manager, ads, adsense, amp, banner
|
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 5.5.1
|
12 |
Requires PHP: 5.3
|
13 |
-
Stable tag: 2.0.12
|
14 |
|
15 |
Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
|
16 |
|
@@ -194,6 +194,9 @@ Alternative Installation:
|
|
194 |
|
195 |
|
196 |
== Changelog ==
|
|
|
|
|
|
|
197 |
= 2.0.12 (11th September 2020) =
|
198 |
* New: Added the matched contents ads feature #235
|
199 |
* New: Adstxt lightbox Design #226
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 5.5.1
|
12 |
Requires PHP: 5.3
|
13 |
+
Stable tag: 2.0.12.1
|
14 |
|
15 |
Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
|
16 |
|
194 |
|
195 |
|
196 |
== Changelog ==
|
197 |
+
= 2.0.12.1 (14th September 2020) =
|
198 |
+
* Fix: Fixed Language issue. #254
|
199 |
+
|
200 |
= 2.0.12 (11th September 2020) =
|
201 |
* New: Added the matched contents ads feature #235
|
202 |
* New: Adstxt lightbox Design #226
|