Make WordPress Core

Ticket #15260: edit.patch

File edit.patch, 2.3 KB (added by wahgnube, 13 years ago)
  • wp-admin/includes/class-wp-list-table.php

     
    616616                if ( $this->has_items() ) {
    617617                        $this->display_table();
    618618                } else {
    619                         echo '<br class="clear">';
     619                        echo '<br class="clear" />';
    620620                        $this->extra_tablenav( 'top' );
    621                         echo '<br class="clear">';
     621                        echo '<br class="clear" />';
    622622                        echo '<p>';
    623623                        $this->no_items();
    624624                        echo '</p>';
     
    694694                $this->pagination( $which );
    695695        ?>
    696696
    697                 <br class="clear">
     697                <br class="clear" />
    698698        </div>
    699699
    700         <br class="clear">
     700        <br class="clear" />
    701701<?php
    702702        }
    703703
  • wp-admin/includes/list-table-posts.php

     
    553553                                echo $this->row_actions( $actions );
    554554
    555555                                get_inline_data( $post );
     556                                echo '</td>';
    556557                        break;
    557558
    558559                        case 'date':
     
    599600                                        $out = array();
    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                                                );
    605606                                        }
     
    619620                                        $out = array();
    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                                                );
    625626                                        }
     
    647648                        ?>
    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                                );
    653654                        ?></td>