- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-terms-list-table.php
r17342 r18247 12 12 var $callback_args; 13 13 14 function WP_Terms_List_Table() {14 function __construct() { 15 15 global $post_type, $taxonomy, $tax; 16 16 … … 28 28 $post_type = 'post'; 29 29 30 parent:: WP_List_Table( array(30 parent::__construct( array( 31 31 'plural' => 'tags', 32 32 'singular' => 'tag', … … 98 98 $columns = array( 99 99 'cb' => '<input type="checkbox" />', 100 'name' => _ _( 'Name' ),100 'name' => _x( 'Name', 'term name' ), 101 101 'description' => __( 'Description' ), 102 102 'slug' => __( 'Slug' ), … … 251 251 $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); 252 252 $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 ) ); 254 254 255 255 $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />'; … … 262 262 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 263 263 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 264 $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; 264 265 265 266 $actions = apply_filters( 'tag_row_actions', $actions, $tag ); … … 270 271 $out .= '<div class="name">' . $qe_data->name . '</div>'; 271 272 $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>'; 273 274 274 275 return $out; … … 301 302 $args['post_type'] = $post_type; 302 303 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>"; 304 305 } 305 306 … … 336 337 337 338 <label> 338 <span class="title"><?php _e ( 'Name' ); ?></span>339 <span class="title"><?php _ex( 'Name', 'term name' ); ?></span> 339 340 <span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span> 340 341 </label>
Note: See TracChangeset
for help on using the changeset viewer.