Make WordPress Core

Changeset 16201


Ignore:
Timestamp:
11/05/2010 07:09:13 AM (14 years ago)
Author:
markjaquith
Message:

format-FOO classes on post edit row TR tags. props deanjrobinson. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r16195 r16201  
    470470        $can_edit_post = current_user_can( 'edit_post', $post->ID );
    471471    ?>
    472         <tr id='post-<?php echo $post->ID; ?>' class='<?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post->post_status ); ?> iedit' valign="top">
     472        <tr id='post-<?php echo $post->ID; ?>' class='<?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post->post_status . ' ' . sanitize_html_class( 'format-' . ( get_post_format( $post->ID ) ? get_post_format( $post->ID ) : 'default' ) ) ); ?> iedit' valign="top">
    473473    <?php
    474474
Note: See TracChangeset for help on using the changeset viewer.