Version Description
Download this release
Release Info
Developer | donncha |
Plugin | Regenerate Thumbnails |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
includes/class-regeneratethumbnails-regenerator.php
CHANGED
@@ -127,7 +127,11 @@ class RegenerateThumbnails_Regenerator {
|
|
127 |
return $this->fullsizepath;
|
128 |
}
|
129 |
|
130 |
-
|
|
|
|
|
|
|
|
|
131 |
|
132 |
if ( false === $this->fullsizepath || ! file_exists( $this->fullsizepath ) ) {
|
133 |
$error = new WP_Error(
|
127 |
return $this->fullsizepath;
|
128 |
}
|
129 |
|
130 |
+
if ( function_exists( 'wp_get_original_image_path' ) ) {
|
131 |
+
$this->fullsizepath = wp_get_original_image_path( $this->attachment->ID );
|
132 |
+
} else {
|
133 |
+
$this->fullsizepath = get_attached_file( $this->attachment->ID );
|
134 |
+
}
|
135 |
|
136 |
if ( false === $this->fullsizepath || ! file_exists( $this->fullsizepath ) ) {
|
137 |
$error = new WP_Error(
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: Viper007Bond
|
3 |
Tags: thumbnail, thumbnails, post thumbnail, post thumbnails
|
4 |
Requires at least: 4.7
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.2.4
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -46,7 +46,7 @@ I personally use Photon on my own website.
|
|
46 |
|
47 |
Support for this plugin is provided via the [WordPress.org forums](https://wordpress.org/support/plugin/regenerate-thumbnails).
|
48 |
|
49 |
-
The source code for this plugin is available on [GitHub](https://github.com/
|
50 |
|
51 |
== Installation ==
|
52 |
|
@@ -72,6 +72,9 @@ This plugin does not log nor transmit any user data. Infact it doesn't even do a
|
|
72 |
|
73 |
== ChangeLog ==
|
74 |
|
|
|
|
|
|
|
75 |
= Version 3.1.1 =
|
76 |
|
77 |
* Minor fix to avoid a divide by zero error when displaying thumbnail filenames.
|
@@ -178,4 +181,4 @@ Lots of new features!
|
|
178 |
* Initial release.
|
179 |
|
180 |
= Upgrade Notice =
|
181 |
-
|
2 |
Contributors: Viper007Bond
|
3 |
Tags: thumbnail, thumbnails, post thumbnail, post thumbnails
|
4 |
Requires at least: 4.7
|
5 |
+
Tested up to: 5.3
|
6 |
Requires PHP: 5.2.4
|
7 |
+
Stable tag: 3.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
46 |
|
47 |
Support for this plugin is provided via the [WordPress.org forums](https://wordpress.org/support/plugin/regenerate-thumbnails).
|
48 |
|
49 |
+
The source code for this plugin is available on [GitHub](https://github.com/automattic/regenerate-thumbnails).
|
50 |
|
51 |
== Installation ==
|
52 |
|
72 |
|
73 |
== ChangeLog ==
|
74 |
|
75 |
+
= Version 3.1.2 =
|
76 |
+
* Use wp_get_original_image_path() in WordPress 5.3
|
77 |
+
|
78 |
= Version 3.1.1 =
|
79 |
|
80 |
* Minor fix to avoid a divide by zero error when displaying thumbnail filenames.
|
181 |
* Initial release.
|
182 |
|
183 |
= Upgrade Notice =
|
184 |
+
Support for WordPress 5.3
|
regenerate-thumbnails.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin Name: Regenerate Thumbnails
|
6 |
Description: Regenerate the thumbnails for one or more of your image uploads. Useful when changing their sizes or your theme.
|
7 |
Plugin URI: https://alex.blog/wordpress-plugins/regenerate-thumbnails/
|
8 |
-
Version: 3.1.
|
9 |
Author: Alex Mills (Viper007Bond)
|
10 |
Author URI: https://alex.blog/
|
11 |
Text Domain: regenerate-thumbnails
|
@@ -392,7 +392,11 @@ class RegenerateThumbnails {
|
|
392 |
return true;
|
393 |
}
|
394 |
|
395 |
-
|
|
|
|
|
|
|
|
|
396 |
|
397 |
if ( ! $fullsize || ! file_exists( $fullsize ) ) {
|
398 |
return false;
|
5 |
Plugin Name: Regenerate Thumbnails
|
6 |
Description: Regenerate the thumbnails for one or more of your image uploads. Useful when changing their sizes or your theme.
|
7 |
Plugin URI: https://alex.blog/wordpress-plugins/regenerate-thumbnails/
|
8 |
+
Version: 3.1.2
|
9 |
Author: Alex Mills (Viper007Bond)
|
10 |
Author URI: https://alex.blog/
|
11 |
Text Domain: regenerate-thumbnails
|
392 |
return true;
|
393 |
}
|
394 |
|
395 |
+
if ( function_exists( 'wp_get_original_image_path' ) ) {
|
396 |
+
$fullsize = wp_get_original_image_path( $post->ID );
|
397 |
+
} else {
|
398 |
+
$fullsize = get_attached_file( $post->ID );
|
399 |
+
}
|
400 |
|
401 |
if ( ! $fullsize || ! file_exists( $fullsize ) ) {
|
402 |
return false;
|