Make WordPress Core

Ticket #12568: post_to_edit_filter.diff

File post_to_edit_filter.diff, 404 bytes (added by themattharris, 15 years ago)
  • wp-admin/includes/post.php

     
    428428        if ( $post->post_type == 'page' )
    429429                $post->page_template = get_post_meta( $id, '_wp_page_template', true );
    430430
    431         return $post;
     431        return apply_filters( 'post_to_edit', $post );
    432432}
    433433
    434434/**