Changeset 14374 for trunk/wp-admin/includes/template.php
- Timestamp:
- 05/03/2010 06:16:22 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14347 r14374 66 66 <?php $update_text = sprintf( __('Update %s'), $tax->singular_label ); ?> 67 67 <a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a> 68 <img class="waiting" style="display:none;" src="<?php echo admin_url( 'images/wpspin_light.gif'); ?>" alt="" />68 <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 69 69 <span class="error" style="display:none;"></span> 70 70 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?> … … 614 614 $post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all'; 615 615 if ( !in_array( $post_status, array('pending', 'draft', 'future') ) && ( empty($post_type) || post_type_supports($post_type, 'comments') ) ) 616 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="' . admin_url( 'images/comment-grey-bubble.png') . '" /></div>';616 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></div>'; 617 617 $posts_columns['date'] = __('Date'); 618 618 … … 644 644 /* translators: column name */ 645 645 $posts_columns['parent'] = _x('Attached to', 'column name'); 646 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="' . admin_url( 'images/comment-grey-bubble.png') . '" /></div>';646 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></div>'; 647 647 //$posts_columns['comments'] = __('Comments'); 648 648 /* translators: column name */ … … 1154 1154 ?> 1155 1155 <a accesskey="s" href="#inline-edit" title="<?php _e('Update'); ?>" class="button-primary save alignright"><?php echo esc_attr( $update_text ); ?></a> 1156 <img class="waiting" style="display:none;" src="<?php echo admin_url( 'images/wpspin_light.gif'); ?>" alt="" />1156 <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 1157 1157 <?php } else { 1158 1158 $update_text = __( 'Update' ); … … 1819 1819 $edit_link = 'profile.php'; 1820 1820 } else { 1821 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI']) ), "user-edit.php?user_id=$user_object->ID" ) );1821 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) ); 1822 1822 } 1823 1823 $edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />"; … … 2013 2013 $user_can = current_user_can($post_type_object->edit_cap, $post->ID); 2014 2014 2015 $comment_url = get_comment_link($comment->comment_ID);2015 $comment_url = esc_url(get_comment_link($comment->comment_ID)); 2016 2016 $author_url = get_comment_author_url(); 2017 2017 if ( 'http://' == $author_url ) … … 2069 2069 if ( $comment->comment_parent ) { 2070 2070 $parent = get_comment( $comment->comment_parent ); 2071 $parent_link = get_comment_link( $comment->comment_parent);2071 $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); 2072 2072 $name = apply_filters( 'get_comment_author', $parent->comment_author ); // there's no API function for this 2073 2073 printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name ); … … 2276 2276 <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span> 2277 2277 <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a> 2278 <img class="waiting" style="display:none;" src="<?php echo admin_url( 'images/wpspin_light.gif'); ?>" alt="" />2278 <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 2279 2279 <span class="error" style="display:none;"></span> 2280 2280 <br class="clear" />
Note: See TracChangeset
for help on using the changeset viewer.