Changeset 27401 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/04/2014 11:10:35 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r27305 r27401 1432 1432 1433 1433 $html = '<table class="widefat"><thead><tr><th class="found-radio"><br /></th><th>'.__('Title').'</th><th class="no-break">'.__('Type').'</th><th class="no-break">'.__('Date').'</th><th class="no-break">'.__('Status').'</th></tr></thead><tbody>'; 1434 $alt = ''; 1434 1435 foreach ( $posts as $post ) { 1435 1436 $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' ); 1437 $alt = ( 'alternate' == $alt ) ? '' : 'alternate'; 1436 1438 1437 1439 switch ( $post->post_status ) { … … 1458 1460 } 1459 1461 1460 $html .= '<tr class=" found-posts"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>';1462 $html .= '<tr class="' . trim( 'found-posts ' . $alt ) . '"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>'; 1461 1463 $html .= '<td><label for="found-'.$post->ID.'">' . esc_html( $title ) . '</label></td><td class="no-break">' . esc_html( $post_types[$post->post_type]->labels->singular_name ) . '</td><td class="no-break">'.esc_html( $time ) . '</td><td class="no-break">' . esc_html( $stat ). ' </td></tr>' . "\n\n"; 1462 1464 }
Note:
See TracChangeset
for help on using the changeset viewer.