AdSense Plugin WP QUADS - Version 1.8.16

Version Description

  • Fix: HTML encoding issue
Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 1.8.16
Comparing to
See all releases

Code changes from version 1.8.15 to 1.8.16

Gruntfile.js DELETED
@@ -1,125 +0,0 @@
1
- /* local path:
2
- cd "P:\quick-adsense-reloaded\github\quick-adsense-reloaded"
3
- server path:
4
- http://wpquads.com/wp-content/uploads/edd/2016/09/wp-quads-pro.zip
5
- *
6
- */
7
- module.exports = function (grunt) {
8
-
9
- // Project configuration.
10
- grunt.initConfig({
11
- pkg: grunt.file.readJSON('package.json'),
12
- paths: {
13
- // Base destination dir free version for wordpress.org
14
- base: '../../wordpress-svn/tags/<%= pkg.version %>',
15
- basetrunk: '../../wordpress-svn/trunk/',
16
- basezip: '../../wordpress-svn/',
17
- },
18
- // Tasks here
19
- // Bump version numbers
20
- version: {
21
- css: {
22
- options: {
23
- prefix: 'Version\\:\\s'
24
- },
25
- src: ['style.css']
26
- },
27
- php: {
28
- options: {
29
- prefix: '\@version\\s+'
30
- },
31
- src: ['functions.php', '<%= pkg.name %>.php']
32
- }
33
- },
34
- // minify js
35
- uglify: {
36
- build: {
37
- files: [
38
- //{'assets/js/quads-admin.min.js': 'assets/js/quads-admin.js'}
39
- {'<%= paths.base %>/assets/js/quads-admin.min.js': 'assets/js/quads-admin.js'}
40
- ]
41
- }
42
- },
43
- // Copy to build folder
44
- copy: {
45
- build: {
46
- files: [
47
- {expand: true, src: ['**', '!node_modules/**', '!Gruntfile.js', '!package.json', '!nbproject/**', '!grunt/**', '!wp-quads-pro.php', '!**/includes/admin/settings/advanced-settings.php', '!grafik/**'],
48
- dest: '<%= paths.base %>'},
49
- {expand: true, src: ['**', '!node_modules/**', '!Gruntfile.js', '!package.json', '!nbproject/**', '!grunt/**', '!wp-quads-pro.php', '!**/includes/admin/settings/advanced-settings.php', '!grafik/**'],
50
- dest: '<%= paths.basetrunk %>'}
51
- ]
52
- },
53
- },
54
- 'string-replace': {
55
- version: {
56
- files: {
57
- '<%= paths.basetrunk %>quick-adsense-reloaded.php': 'quick-adsense-reloaded.php',
58
- '<%= paths.base %>/quick-adsense-reloaded.php': 'quick-adsense-reloaded.php',
59
- '<%= paths.base %>/readme.txt': 'readme.txt',
60
- '<%= paths.basetrunk %>readme.txt': 'readme.txt',
61
-
62
- },
63
- options: {
64
- replacements: [{
65
- pattern: /1.8.15/g,
66
- replacement: '<%= pkg.version %>'
67
- }]
68
- }
69
- }
70
- },
71
- // Clean the build folder
72
- clean: {
73
- options: {
74
- force: true
75
- },
76
- build: {
77
- files: [
78
- {src: ['<%= paths.base %>']},
79
- {src: ['<%= paths.basetrunk %>']},
80
- ]
81
-
82
- }
83
- },
84
- // Minify CSS files
85
- cssmin: {
86
- build: {
87
- files: [
88
- //{'assets/css/quads-admin.min.css': 'assets/css/quads-admin.css'}
89
- {'<%= paths.base %>/assets/css/quads-admin.min.css': 'assets/css/quads-admin.css'}
90
- ]
91
- }
92
- },
93
- // Compress the build folder into an upload-ready zip file
94
- compress: {
95
- build: {
96
- options:
97
- {
98
- archive: '<%= paths.basezip %>/quick-adsense-reloaded.zip'
99
- },
100
- files:[
101
- {
102
- expand: true,
103
- cwd: '<%= paths.base %>',
104
- src: ['**/*']
105
- }
106
- ]
107
- }
108
- }
109
-
110
-
111
- });
112
-
113
- // Load all grunt plugins here
114
- // [...]
115
- //require('load-grunt-config')(grunt);
116
- require('load-grunt-tasks')(grunt);
117
-
118
- // Display task timing
119
- require('time-grunt')(grunt);
120
-
121
- // Build task
122
- //grunt.registerTask( 'build', [ 'compress:build' ]);
123
- //grunt.registerTask('build', ['clean:build', 'uglify:build', 'cssmin:build', 'copy:build', 'string-replace:version', 'compress:build']);
124
- grunt.registerTask('build', ['clean:build', 'copy:build', 'cssmin:build', 'string-replace:version', 'compress:build']);
125
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/gutenberg/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "1.8.9",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "1.8.16",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
includes/template-functions.php CHANGED
@@ -61,7 +61,13 @@ function quads_classic_to_gutenberg($data)
61
  function quads_change_adsbygoogle_to_amp($content){
62
  if (quads_is_amp_endpoint()){
63
  $dom = new DOMDocument();
64
- $dom->loadHTML($content);
 
 
 
 
 
 
65
  $nodes = $dom->getElementsByTagName( 'ins' );
66
 
67
  $num_nodes = $nodes->length;
61
  function quads_change_adsbygoogle_to_amp($content){
62
  if (quads_is_amp_endpoint()){
63
  $dom = new DOMDocument();
64
+ if( function_exists( 'mb_convert_encoding' ) ){
65
+ $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
66
+ }
67
+ else{
68
+ $content = preg_replace( '/&.*?;/', 'x', $content ); // multi-byte characters converted to X
69
+ }
70
+ @$dom->loadHTML($content);
71
  $nodes = $dom->getElementsByTagName( 'ins' );
72
 
73
  $num_nodes = $nodes->length;
package.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "quick-adsense-reloaded",
3
+ "version": "1.8.16",
4
+ "devDependencies": {
5
+ "grunt": "~0.4.5",
6
+ "grunt-contrib-clean": "~0.6.0",
7
+ "grunt-contrib-compress": "~0.13.0",
8
+ "grunt-contrib-copy": "~0.7.0",
9
+ "grunt-contrib-cssmin": "~0.12.2",
10
+ "grunt-contrib-jshint": "~0.6.3",
11
+ "grunt-contrib-uglify": "~0.2.2",
12
+ "grunt-phplint": "~0.0.5",
13
+ "grunt-version": ">=0.3.1",
14
+ "load-grunt-tasks": "~3.1.0",
15
+ "time-grunt": "~1.1.0",
16
+ "load-grunt-config": "*",
17
+ "grunt-string-replace": "~1.2.1",
18
+ "webpack": "1.x",
19
+ "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony"
20
+ }
21
+ }
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: 1.8.15
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -36,7 +36,7 @@ if( !defined( 'ABSPATH' ) )
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
- define( 'QUADS_VERSION', '1.8.15' );
40
  }
41
 
42
  // 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: 1.8.16
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
+ define( 'QUADS_VERSION', '1.8.16' );
40
  }
41
 
42
  // 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: 5.3.2
12
  Requires PHP: 5.3
13
- Stable tag: 1.8.15
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
@@ -129,6 +129,9 @@ Alternative Installation:
129
 
130
 
131
  == Changelog ==
 
 
 
132
  = 1.8.15 =
133
  * Fix: Changes support Email id form in help area.
134
  * New: Converting adsbygoogle to amp-ads for AMP.
10
  Requires at least: 3.6+
11
  Tested up to: 5.3.2
12
  Requires PHP: 5.3
13
+ Stable tag: 1.8.16
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
129
 
130
 
131
  == Changelog ==
132
+ = 1.8.16 =
133
+ * Fix: HTML encoding issue
134
+
135
  = 1.8.15 =
136
  * Fix: Changes support Email id form in help area.
137
  * New: Converting adsbygoogle to amp-ads for AMP.