Make WordPress Core

Changeset 16134


Ignore:
Timestamp:
11/01/2010 04:24:48 PM (14 years ago)
Author:
ryan
Message:

edit.php markup fixes. Props wahgnube. fixes #15260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r16128 r16134  
    554554
    555555                get_inline_data( $post );
     556                echo '</td>';
    556557            break;
    557558
     
    600601                    foreach ( $categories as $c ) {
    601602                        $out[] = sprintf( '<a href="%s">%s</a>',
    602                             add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug ), 'edit.php' ),
     603                            esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug ), 'edit.php' ) ),
    603604                            esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'category', 'display' ) )
    604605                        );
     
    620621                    foreach ( $tags as $c ) {
    621622                        $out[] = sprintf( '<a href="%s">%s</a>',
    622                             add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug ), 'edit.php' ),
     623                            esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug ), 'edit.php' ) ),
    623624                            esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'tag', 'display' ) )
    624625                        );
     
    648649            <td <?php echo $attributes ?>><?php
    649650                printf( '<a href="%s">%s</a>',
    650                     add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' ),
     651                    esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' )),
    651652                    get_the_author()
    652653                );
Note: See TracChangeset for help on using the changeset viewer.