Ticket #18952: 18952.patch
File 18952.patch, 6.1 KB (added by , 14 years ago) |
---|
-
wp-admin/admin-header.php
54 54 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>', 55 55 'time':'<?php echo time() ?>' 56 56 }, 57 ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',57 ajaxurl = '<?php echo relative_admin_url('admin-ajax.php'); ?>', 58 58 pagenow = '<?php echo $current_screen->id; ?>', 59 59 typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>', 60 60 adminpage = '<?php echo $admin_body_class; ?>', -
wp-admin/includes/image-edit.php
67 67 <input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo $meta['height']; ?>" /> 68 68 69 69 <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> 70 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo admin_url('admin-ajax.php'); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand(1, 99999); ?>" />70 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo relative_admin_url('admin-ajax.php'); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand(1, 99999); ?>" /> 71 71 </div> 72 72 73 73 <div class="imgedit-submit"> -
wp-admin/includes/media.php
328 328 //<![CDATA[ 329 329 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 330 330 var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'}; 331 var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',331 var ajaxurl = '<?php echo relative_admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', 332 332 isRtl = <?php echo (int) is_rtl(); ?>; 333 333 //]]> 334 334 </script> -
wp-admin/includes/template.php
1369 1369 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>', 1370 1370 'time':'<?php echo time() ?>' 1371 1371 }, 1372 ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',1372 ajaxurl = '<?php echo relative_admin_url('admin-ajax.php'); ?>', 1373 1373 pagenow = '<?php echo $current_screen->id; ?>', 1374 1374 typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>', 1375 1375 adminpage = '<?php echo $admin_body_class; ?>', -
wp-admin/press-this.php
295 295 //<![CDATA[ 296 296 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 297 297 var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time() ?>'}; 298 var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>;298 var ajaxurl = '<?php echo relative_admin_url('admin-ajax.php'); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>; 299 299 var photostorage = false; 300 300 //]]> 301 301 </script> -
wp-includes/class-wp-editor.php
595 595 } 596 596 597 597 if ( !is_admin() ) 598 echo 'var ajaxurl = "' . admin_url('admin-ajax.php') . '";';598 echo 'var ajaxurl = "' . relative_admin_url('admin-ajax.php') . '";'; 599 599 ?> 600 600 </script> 601 601 <?php -
wp-includes/link-template.php
1955 1955 } 1956 1956 1957 1957 /** 1958 * Retrieve the relative url to the admin area for the current site. 1959 * 1960 * @package WordPress 1961 * @since 3.4.0 1962 * 1963 * @param string $path Optional path relative to the admin url. 1964 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 1965 * @return string Relative admin url link with optional path appended. 1966 */ 1967 function relative_admin_url( $path = '', $scheme = 'admin' ) { 1968 return preg_replace( '#^http(s)?://[^/]*#', '', get_admin_url(null, $path, $scheme) ); 1969 } 1970 1971 /** 1958 1972 * Retrieve the url to the admin area for a given site. 1959 1973 * 1960 1974 * @package WordPress -
wp-includes/media.php
1096 1096 <script type="text/javascript"> 1097 1097 /* <![CDATA[ */ 1098 1098 jQuery(document).ready(function($){ 1099 $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post_ID ); ?>");1099 $.get("<?php echo relative_admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post_ID ); ?>"); 1100 1100 }); 1101 1101 /* ]]> */ 1102 1102 </script>