Changeset 14374 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 05/03/2010 06:16:22 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/meta-boxes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r14347 r14374 38 38 <?php 39 39 if ( 'publish' == $post->post_status ) { 40 $preview_link = get_permalink($post->ID);40 $preview_link = esc_url(get_permalink($post->ID)); 41 41 $preview_button = __('Preview Changes'); 42 42 } else { 43 $preview_link = apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)));43 $preview_link = esc_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); 44 44 $preview_button = __('Preview'); 45 45 } … … 205 205 206 206 <div id="publishing-action"> 207 <img src="<?php echo admin_url( 'images/wpspin_light.gif'); ?>" id="ajax-loading" style="visibility:hidden;" alt="" />207 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" id="ajax-loading" style="visibility:hidden;" alt="" /> 208 208 <?php 209 209 if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { … … 452 452 <tbody id="the-comment-list" class="list:comment"></tbody> 453 453 </table> 454 <p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo admin_url( 'images/wpspin_light.gif'); ?>" alt="" /></p>454 <p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p> 455 455 <?php 456 456 $hidden = get_hidden_meta_boxes('post');
Note: See TracChangeset
for help on using the changeset viewer.