Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17342 r18247  
    1212    var $callback_args;
    1313
    14     function WP_Terms_List_Table() {
     14    function __construct() {
    1515        global $post_type, $taxonomy, $tax;
    1616
     
    2828            $post_type = 'post';
    2929
    30         parent::WP_List_Table( array(
     30        parent::__construct( array(
    3131            'plural' => 'tags',
    3232            'singular' => 'tag',
     
    9898        $columns = array(
    9999            'cb'          => '<input type="checkbox" />',
    100             'name'        => __( 'Name' ),
     100            'name'        => _x( 'Name', 'term name' ),
    101101            'description' => __( 'Description' ),
    102102            'slug'        => __( 'Slug' ),
     
    251251        $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
    252252        $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' );
    253         $edit_link = get_edit_term_link( $tag->term_id, $taxonomy, $post_type );
     253        $edit_link = esc_url( get_edit_term_link( $tag->term_id, $taxonomy, $post_type ) );
    254254
    255255        $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />';
     
    262262        if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
    263263            $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
     264        $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>';
    264265
    265266        $actions = apply_filters( 'tag_row_actions', $actions, $tag );
     
    270271        $out .= '<div class="name">' . $qe_data->name . '</div>';
    271272        $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
    272         $out .= '<div class="parent">' . $qe_data->parent . '</div></div></td>';
     273        $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
    273274
    274275        return $out;
     
    301302        $args['post_type'] = $post_type;
    302303
    303         return "<a href='" . add_query_arg( $args, 'edit.php' ) . "'>$count</a>";
     304        return "<a href='" . esc_url ( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>";
    304305    }
    305306
     
    336337
    337338                <label>
    338                     <span class="title"><?php _e( 'Name' ); ?></span>
     339                    <span class="title"><?php _ex( 'Name', 'term name' ); ?></span>
    339340                    <span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
    340341                </label>
Note: See TracChangeset for help on using the changeset viewer.