Bug in Media Library Popup
-
Hi,
Thanks for the great plugin. Unfortunately I’m having a problem with the latest version (never seen the bug in previous versions) that makes the media library popup unusable because the submit button is always disabled due to a javascript bug.
I managed to track the issue down to one line of code, so it should be an easy fix ??
On line 46 in ajax-thumbnail-rebuild.php inside
function addRebuildSingle
you overwrite the$post
variable from the filter withglobal $post
.function addRebuildSingle($fields, $post) { global $post; ...
My findings are, the on the media library popup
global $post
isNULL
but the supplied$post
actually works perfectly so you do not really need line 46.I do not know why you would need it at all because I’m quite sure that you can rely on the second argument of the filter to exist, so you could either completly ommit
global $post;
or at least test if the filter’s $post exists before overwriting it.Greetings
David
- The topic ‘Bug in Media Library Popup’ is closed to new replies.