Version Description
This is a hotfix release.
- Dashboard: fixes thumbnail picker on HTTPS.
- Adds the wpp_custom_html filter back.
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
- admin/js/admin.js +1 -1
- includes/class-wordpress-popular-posts-output.php +7 -0
- readme.txt +10 -1
- wordpress-popular-posts.php +1 -1
admin/js/admin.js
CHANGED
@@ -309,7 +309,7 @@
|
|
309 |
e.preventDefault();
|
310 |
});
|
311 |
window.send_to_editor = function(html) {
|
312 |
-
var regex = /<img[^>]+src="(
|
313 |
var result = regex.exec(html);
|
314 |
|
315 |
if ( null != result ) {
|
309 |
e.preventDefault();
|
310 |
});
|
311 |
window.send_to_editor = function(html) {
|
312 |
+
var regex = /<img[^>]+src="(https?:\/\/[^">]+)"/g;
|
313 |
var result = regex.exec(html);
|
314 |
|
315 |
if ( null != result ) {
|
includes/class-wordpress-popular-posts-output.php
CHANGED
@@ -58,6 +58,13 @@ class WPP_Output {
|
|
58 |
$this->options
|
59 |
);
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
/* Open HTML wrapper */
|
62 |
// Output a custom wrapper
|
63 |
if (
|
58 |
$this->options
|
59 |
);
|
60 |
|
61 |
+
// Allow WP themers / coders access to raw data
|
62 |
+
// so they can build their own output
|
63 |
+
if ( has_filter( 'wpp_custom_html' ) ) {
|
64 |
+
$this->output = apply_filters( 'wpp_custom_html', $this->data, $this->options );
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
|
68 |
/* Open HTML wrapper */
|
69 |
// Output a custom wrapper
|
70 |
if (
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabr
|
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.8.2
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -82,6 +82,13 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
82 |
4. WordPress Popular Posts Stats panel.
|
83 |
|
84 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
= 4.0.1 =
|
86 |
|
87 |
**This is a hotfix release.**
|
@@ -109,6 +116,8 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
109 |
- French and German translation files became too outdated and so support has been dropped for now (want to help? Contact me!)
|
110 |
- Tons of minor bug fixes and improvements.
|
111 |
|
|
|
|
|
112 |
= 3.3.4 =
|
113 |
- Attempt to convert tables to InnoDB during upgrade if other engine is being used.
|
114 |
- Adds a check to prevent the upgrade process from running too many times.
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.8.2
|
7 |
+
Stable tag: 4.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
82 |
4. WordPress Popular Posts Stats panel.
|
83 |
|
84 |
== Changelog ==
|
85 |
+
= 4.0.2 =
|
86 |
+
|
87 |
+
**This is a hotfix release.**
|
88 |
+
|
89 |
+
- Dashboard: fixes thumbnail picker on HTTPS.
|
90 |
+
- Adds the wpp_custom_html filter back.
|
91 |
+
|
92 |
= 4.0.1 =
|
93 |
|
94 |
**This is a hotfix release.**
|
116 |
- French and German translation files became too outdated and so support has been dropped for now (want to help? Contact me!)
|
117 |
- Tons of minor bug fixes and improvements.
|
118 |
|
119 |
+
Also, see [Release notes](https://cabrerahector.com/development/wordpress-popular-posts-4-0-is-finally-out/).
|
120 |
+
|
121 |
= 3.3.4 =
|
122 |
- Attempt to convert tables to InnoDB during upgrade if other engine is being used.
|
123 |
- Adds a check to prevent the upgrade process from running too many times.
|
wordpress-popular-posts.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
-
* Version: 4.0.
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: http://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
+
* Version: 4.0.2
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: http://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|