Make WordPress Core


Ignore:
Timestamp:
11/01/2014 08:19:26 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve some post_status-related documentation.

Props ericlewis.
See #30230.

File:
1 edited

Legend:

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

    r30141 r30155  
    11431143        if ( isset($_POST['metakeyselect']) && '#NONE#' == $_POST['metakeyselect'] && empty($_POST['metakeyinput']) )
    11441144            wp_die( 1 );
     1145       
     1146        // If the post is an autodraft, save the post as a draft and then
     1147        // attempt to save the meta.
    11451148        if ( $post->post_status == 'auto-draft' ) {
    11461149            $save_POST = $_POST; // Backup $_POST
     
    14871490
    14881491/**
    1489  * Ajax handler for quick edit saving for a post.
     1492 * Ajax handler for Quick Edit saving a post from a list table.
    14901493 *
    14911494 * @since 3.1.0
     
    16181621
    16191622/**
    1620  * Ajax handler for finding posts.
     1623 * Ajax handler for querying posts for the Find Posts modal.
     1624 *
     1625 * @see window.findPosts
    16211626 *
    16221627 * @since 3.1.0
     
    21482153
    21492154/**
    2150  * Ajax handler for querying for attachments.
     2155 * Ajax handler for querying attachments.
    21512156 *
    21522157 * @since 3.5.0
     
    21942199
    21952200/**
    2196  * Ajax handler for saving attachment attributes.
     2201 * Ajax handler for updating attachment attributes.
    21972202 *
    21982203 * @since 3.5.0
Note: See TracChangeset for help on using the changeset viewer.