Make WordPress Core

Ticket #18516: 18516.diff

File 18516.diff, 1.1 KB (added by brandondove, 13 years ago)
  • wp-admin/includes/class-wp-posts-list-table.php

     
    478478                $can_edit_post = current_user_can( $post_type_object->cap->edit_post, $post->ID );
    479479                $post_format = get_post_format( $post->ID );
    480480                $post_format_class = ( $post_format && !is_wp_error($post_format) ) ? 'format-' . sanitize_html_class( $post_format ) : 'format-default';
     481                $custom_class = apply_filters( 'post_list_table_row_class', '', $post );
    481482        ?>
    482                 <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">
     483                <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">
    483484        <?php
    484485
    485486                list( $columns, $hidden ) = $this->get_column_info();