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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-07-28 23:07:47 +00:00
parent a3a1f83d7f
commit e30000d174
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ if($_REQUEST['ajax'] == 'photo') { ?>
<?php } ?> <?php } ?>
jQuery('#extra_fields').show(); 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').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({ jQuery.ajax({
type: "GET", type: "GET",
cache : false, cache : false,