| 1 | Index: wp-admin/includes/class-wp-posts-list-table.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/class-wp-posts-list-table.php (revision 18599) |
|---|
| 4 | +++ wp-admin/includes/class-wp-posts-list-table.php (working copy) |
|---|
| 5 | @@ -478,8 +478,9 @@ |
|---|
| 6 | $can_edit_post = current_user_can( $post_type_object->cap->edit_post, $post->ID ); |
|---|
| 7 | $post_format = get_post_format( $post->ID ); |
|---|
| 8 | $post_format_class = ( $post_format && !is_wp_error($post_format) ) ? 'format-' . sanitize_html_class( $post_format ) : 'format-default'; |
|---|
| 9 | + $custom_class = apply_filters( 'post_list_table_row_class', '', $post ); |
|---|
| 10 | ?> |
|---|
| 11 | - <tr id='post-<?php echo $post->ID; ?>' class='<?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post->post_status . ' ' . $post_format_class); ?> iedit' valign="top"> |
|---|
| 12 | + <tr id='post-<?php echo $post->ID; ?>' class='<?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post->post_status . ' ' . $post_format_class . ' ' . $custom_class ); ?> iedit' valign="top"> |
|---|
| 13 | <?php |
|---|
| 14 | |
|---|
| 15 | list( $columns, $hidden ) = $this->get_column_info(); |
|---|