Make WordPress Core


Ignore:
Timestamp:
07/21/2020 12:47:58 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve description for edit_post().

Props stevenlinx.
Fixes #50713.

File:
1 edited

Legend:

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

    r48177 r48529  
    225225 * Update an existing post with values provided in $_POST.
    226226 *
     227 * If post data is passed as an argument, it is treated as an array of data
     228 * keyed appropriately for turning into a post object.
     229 *
     230 * If post data is not passed, the $_POST global variable is used instead.
     231 *
    227232 * @since 1.5.0
    228233 *
    229234 * @global wpdb $wpdb WordPress database abstraction object.
    230235 *
    231  * @param array $post_data Optional.
     236 * @param array $post_data Optional. Defaults to the $_POST global.
    232237 * @return int Post ID.
    233238 */
Note: See TracChangeset for help on using the changeset viewer.