Make WordPress Core


Ignore:
Timestamp:
11/05/2010 09:16:46 PM (16 years ago)
Author:
scribu
Message:

Make post column hooks consistent. See #14579

File:
1 edited

Legend:

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

    r16205 r16212  
    657657                        default:
    658658                        ?>
    659                         <td <?php echo $attributes ?>><?php do_action( 'manage_posts_custom_column', $column_name, $post->ID ); ?></td>
     659                        <td <?php echo $attributes ?>><?php
     660                                if ( 'page' == $post->post_type )
     661                                        do_action( 'manage_pages_custom_column', $column_name, $post->ID );
     662                                else
     663                                        do_action( 'manage_posts_custom_column', $column_name, $post->ID );
     664                                do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
     665                        ?></td>
    660666                        <?php
    661667                        break;
Note: See TracChangeset for help on using the changeset viewer.