Changeset 11383 for trunk/wp-admin/press-this.php
- Timestamp:
- 05/18/2009 04:00:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r11380 r11383 98 98 $selection = '<p>'.str_replace('<p></p>', '', $selection).'</p>'; 99 99 } 100 $url = isset($_GET['u']) ? clean_url($_GET['u']) : '';100 $url = isset($_GET['u']) ? esc_url($_GET['u']) : ''; 101 101 $image = isset($_GET['i']) ? $_GET['i'] : ''; 102 102 … … 141 141 142 142 <p class="centered"><input type="hidden" name="this_photo" value="<?php echo esc_attr($image); ?>" id="this_photo" /> 143 <a href="#" class="select"><img src="<?php echo clean_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" /></a></p>143 <a href="#" class="select"><img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" /></a></p> 144 144 145 145 <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p> … … 206 206 else 207 207 $src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src); 208 $sources[] = clean_url($src);208 $sources[] = esc_url($src); 209 209 } 210 210 return "'" . implode("','", $sources) . "'"; … … 223 223 jQuery.ajax({ 224 224 type: "GET", 225 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>",225 url: "<?php echo esc_url($_SERVER['PHP_SELF']); ?>", 226 226 cache : false, 227 227 async : false, … … 234 234 jQuery.ajax({ 235 235 type: "GET", 236 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>",236 url: "<?php echo esc_url($_SERVER['PHP_SELF']); ?>", 237 237 cache : false, 238 238 async : false, … … 378 378 switch(tab_name) { 379 379 case 'video' : 380 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo esc_attr($selection); ?>'}, function() {380 jQuery('#extra_fields').load('<?php echo esc_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo esc_attr($selection); ?>'}, function() { 381 381 <?php 382 382 $content = ''; … … 407 407 type: "GET", 408 408 cache : false, 409 url: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>",409 url: "<?php echo esc_url($_SERVER['PHP_SELF']); ?>", 410 410 data: "ajax=photo_js&u=<?php echo urlencode($url)?>", 411 411 dataType : "script",
Note: See TracChangeset
for help on using the changeset viewer.