Press This: using trailing slash after $_SERVER['PHP_SELF'] breaks the image tab on some servers.

git-svn-id: https://develop.svn.wordpress.org/trunk@8476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-07-28 23:07:47 +00:00
parent c0c919091b
commit ec69e512e4
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ if($_REQUEST['ajax'] == 'photo') { ?>
<?php } ?>
jQuery('#extra_fields').show();
jQuery('#extra_fields').before('<h2 id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></h2>');
jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']).'/?ajax=photo&u='.attribute_escape($url); ?>');
jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']).'?ajax=photo&u='.attribute_escape($url); ?>');
jQuery.ajax({
type: "GET",
cache : false,