WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 04:58:43 PM (10 years ago)
Author:
ryan
Message:

More custom post type support. Props scribu. see #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r12438 r12597  
    11361136        $post[] = get_post($_POST['post_ID']);
    11371137        page_rows($post);
    1138     } elseif ( 'post' == $_POST['post_type'] ) {
     1138    } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('_show' => true) ) ) ) {
    11391139        $mode = $_POST['post_view'];
    11401140        $post[] = get_post($_POST['post_ID']);
Note: See TracChangeset for help on using the changeset viewer.