Ticket #24210: 24210.patch
File 24210.patch, 5.6 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
1023 1023 1024 1024 $role = current( $user_object->roles ); 1025 1025 1026 ob_start(); 1027 $wp_list_table->single_row( $user_object, '', $role ); 1028 $user_row = ob_get_clean(); 1029 1026 1030 $x = new WP_Ajax_Response( array( 1027 1031 'what' => 'user', 1028 1032 'id' => $user_id, 1029 'data' => $ wp_list_table->single_row( $user_object, '', $role ),1033 'data' => $user_row, 1030 1034 'supplemental' => array( 1031 1035 'show-link' => sprintf(__( 'User <a href="#%s">%s</a> added' ), "user-$user_id", $user_object->user_login), 1032 1036 'role' => $role, … … 1415 1419 $parent = $parent_tag->parent; 1416 1420 $level++; 1417 1421 } 1418 echo$wp_list_table->single_row( $tag, $level );1422 $wp_list_table->single_row( $tag, $level ); 1419 1423 wp_die(); 1420 1424 } 1421 1425 -
wp-admin/includes/class-wp-comments-list-table.php
315 315 $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID ); 316 316 317 317 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>"; 318 echo$this->single_row_columns( $comment );318 $this->single_row_columns( $comment ); 319 319 echo "</tr>\n"; 320 320 } 321 321 -
wp-admin/includes/class-wp-list-table.php
826 826 $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); 827 827 828 828 echo '<tr' . $row_class . '>'; 829 echo$this->single_row_columns( $item );829 $this->single_row_columns( $item ); 830 830 echo '</tr>'; 831 831 } 832 832 -
wp-admin/includes/class-wp-posts-list-table.php
382 382 if ( $count >= $end ) 383 383 break; 384 384 385 if ( $count >= $start ) 386 echo "\t" . $this->single_row( $page, $level ); 385 if ( $count >= $start ) { 386 echo "\t"; 387 $this->single_row( $page, $level ); 388 } 387 389 388 390 $count++; 389 391 … … 397 399 foreach ( $orphans as $op ) { 398 400 if ( $count >= $end ) 399 401 break; 400 if ( $count >= $start ) 401 echo "\t" . $this->single_row( $op, 0 ); 402 403 if ( $count >= $start ) { 404 echo "\t"; 405 $this->single_row( $op, 0 ); 406 } 407 402 408 $count++; 403 409 } 404 410 } … … 444 450 } 445 451 $num_parents = count( $my_parents ); 446 452 while ( $my_parent = array_pop( $my_parents ) ) { 447 echo "\t" . $this->single_row( $my_parent, $level - $num_parents ); 453 echo "\t"; 454 $this->single_row( $my_parent, $level - $num_parents ); 448 455 $num_parents--; 449 456 } 450 457 } 451 458 452 if ( $count >= $start ) 453 echo "\t" . $this->single_row( $page, $level ); 459 if ( $count >= $start ) { 460 echo "\t"; 461 $this->single_row( $page, $level ); 462 } 454 463 455 464 $count++; 456 465 -
wp-admin/includes/class-wp-terms-list-table.php
156 156 } else { 157 157 $terms = get_terms( $taxonomy, $args ); 158 158 foreach ( $terms as $term ) 159 $ out .= $this->single_row( $term, 0, $taxonomy );159 $this->single_row( $term, 0, $taxonomy ); 160 160 $count = $number; // Only displaying a single page. 161 161 } 162 162 … … 199 199 200 200 $num_parents = count( $my_parents ); 201 201 while ( $my_parent = array_pop( $my_parents ) ) { 202 $output .= "\t" . $this->single_row( $my_parent, $level - $num_parents, $taxonomy ); 202 $output .= "\t"; 203 $this->single_row( $my_parent, $level - $num_parents, $taxonomy ); 203 204 $num_parents--; 204 205 } 205 206 } 206 207 207 if ( $count >= $start ) 208 $output .= "\t" . $this->single_row( $term, $level, $taxonomy ); 208 if ( $count >= $start ) { 209 $output .= "\t"; 210 $this->single_row( $term, $level, $taxonomy ); 211 } 209 212 210 213 ++$count; 211 214 … … 225 228 $this->level = $level; 226 229 227 230 echo '<tr id="tag-' . $tag->term_id . '"' . $row_class . '>'; 228 echo$this->single_row_columns( $tag );231 $this->single_row_columns( $tag ); 229 232 echo '</tr>'; 230 233 } 231 234 -
wp-admin/includes/class-wp-users-list-table.php
209 209 continue; 210 210 211 211 $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 212 echo "\n\t", $this->single_row( $user_object, $style, $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); 212 echo "\n\t"; 213 $this->single_row( $user_object, $style, $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); 213 214 } 214 215 } 215 216 -
wp-admin/includes/theme-install.php
153 153 function display_theme( $theme ) { 154 154 _deprecated_function( __FUNCTION__, '3.4' ); 155 155 global $wp_list_table; 156 return$wp_list_table->single_row( $theme );156 $wp_list_table->single_row( $theme ); 157 157 } 158 158 159 159 /**