Make WordPress Core

Changeset 13360


Ignore:
Timestamp:
02/24/2010 05:45:38 AM (15 years ago)
Author:
ryan
Message:

Allow inline saves for non-public custom post types. Props jfarthing84. see #9674

File:
1 edited

Legend:

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

    r13311 r13360  
    11131113        $post[] = get_post($_POST['post_ID']);
    11141114        page_rows($post);
    1115     } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('show_ui' => true) ) ) ) {
     1115    } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('public' => true) ) ) ) {
    11161116        $mode = $_POST['post_view'];
    11171117        $post[] = get_post($_POST['post_ID']);
Note: See TracChangeset for help on using the changeset viewer.