Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
af3dcf8b
authored
2023-11-13 15:18:27 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
34c42243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
wp-content/plugins/regenerate-thumbnails/includes/class-regeneratethumbnails-regenerator.php
wp-content/plugins/regenerate-thumbnails/includes/class-regeneratethumbnails-regenerator.php
View file @
af3dcf8
...
...
@@ -136,11 +136,9 @@ class RegenerateThumbnails_Regenerator {
return
$this
->
fullsizepath
;
}
if
(
function_exists
(
'wp_get_original_image_path'
)
)
{
$this
->
fullsizepath
=
wp_get_original_image_path
(
$this
->
attachment
->
ID
);
}
else
{
$this
->
fullsizepath
=
get_attached_file
(
$this
->
attachment
->
ID
);
}
if
(
false
===
$this
->
fullsizepath
||
!
file_exists
(
$this
->
fullsizepath
)
)
{
$error
=
new
WP_Error
(
...
...
Please
register
or
sign in
to post a comment