Make WordPress Core

Ticket #24378: 24378.patch

File 24378.patch, 980 bytes (added by DrewAPicture, 13 years ago)
  • wp-admin/includes/class-wp-posts-list-table.php

     
    551551                                if ( $format = get_post_format( $post->ID ) ) {
    552552                                        $label = get_post_format_string( $format );
    553553
    554                                         echo '<a href="' . esc_url( add_query_arg( array( 'post_format' => $format, 'post_type' => $post->post_type ), 'edit.php' ) ) . '" class="post-state-format format-' . $format . '" title="' . $label . '">' . $label . ":</a> ";
     554                                        echo apply_filters( 'post_format_icon', '<a href="' . esc_url( add_query_arg( array( 'post_format' => $format, 'post_type' => $post->post_type ), 'edit.php' ) ) . '" class="post-state-format format-' . $format . '" title="' . $label . '">' . $label . ':</a> ', $format, $post, $label );
    555555                                }
    556556
    557557                                if ( $can_edit_post && $post->post_status != 'trash' ) {