Make WordPress Core


Ignore:
Timestamp:
05/03/2010 06:16:22 PM (16 years ago)
Author:
ryan
Message:

Revert [14347] and [14372]. It broke more than we expected. Try again in 3.1. see #13051

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14347 r14374  
    6666                <?php $update_text = sprintf( __('Update %s'), $tax->singular_label ); ?>
    6767                <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="" />
    6969                <span class="error" style="display:none;"></span>
    7070                <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>
     
    614614        $post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
    615615        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>';
    617617        $posts_columns['date'] = __('Date');
    618618
     
    644644        /* translators: column name */
    645645        $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>';
    647647        //$posts_columns['comments'] = __('Comments');
    648648        /* translators: column name */
     
    11541154                        ?>
    11551155                        <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="" />
    11571157                <?php } else {
    11581158                        $update_text = __( 'Update' );
     
    18191819                        $edit_link = 'profile.php';
    18201820                } 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" ) );
    18221822                }
    18231823                $edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />";
     
    20132013        $user_can = current_user_can($post_type_object->edit_cap, $post->ID);
    20142014
    2015         $comment_url = get_comment_link($comment->comment_ID);
     2015        $comment_url = esc_url(get_comment_link($comment->comment_ID));
    20162016        $author_url = get_comment_author_url();
    20172017        if ( 'http://' == $author_url )
     
    20692069                                if ( $comment->comment_parent ) {
    20702070                                        $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 ) );
    20722072                                        $name = apply_filters( 'get_comment_author', $parent->comment_author ); // there's no API function for this
    20732073                                        printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
     
    22762276        <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span>
    22772277        <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="" />
    22792279        <span class="error" style="display:none;"></span>
    22802280        <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.