PressThis fix from Noel, see #7949
git-svn-id: https://develop.svn.wordpress.org/trunk@9961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a519d62ab9
commit
89ba87084f
@ -266,7 +266,7 @@ switch ($_REQUEST['ajax']) {
|
|||||||
img_attr = 'id="img' + i + '"';
|
img_attr = 'id="img' + i + '"';
|
||||||
skip = false;
|
skip = false;
|
||||||
|
|
||||||
maybeappend = '<a href="?ajax=photo_thickbox&i=' + encodeURI(img.src) + '&u=<?php echo urlencode($url); ?>&height=400&width=500" title="" class="thickbox"><img src="' + img.src + '" ' + img_attr + '/></a>';
|
maybeappend = '<a href="?ajax=photo_thickbox&i=' + encodeURIComponent(img.src) + '&u=<?php echo urlencode($url); ?>&height=400&width=500" title="" class="thickbox"><img src="' + img.src + '" ' + img_attr + '/></a>';
|
||||||
|
|
||||||
if (img.width && img.height) {
|
if (img.width && img.height) {
|
||||||
if (img.width >= 30 && img.height >= 30) {
|
if (img.width >= 30 && img.height >= 30) {
|
||||||
|
Loading…
Reference in New Issue
Block a user