Make WordPress Core


Ignore:
Timestamp:
09/05/2010 02:45:39 AM (15 years ago)
Author:
nacin
Message:

phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.

File:
1 edited

Legend:

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

    r15563 r15564  
    21262126 *
    21272127 * @since 1.0.0
    2128  * @link http://core.trac.wordpress.org/ticket/9084 Bug report on 'wp_insert_post_data' filter.
    21292128 * @uses $wpdb
    21302129 * @uses $wp_rewrite
    21312130 * @uses $user_ID
    2132  *
    21332131 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update.
    21342132 * @uses do_action() Calls 'edit_post' action on post ID and post data if this is an update.
    2135  * @uses do_action() Calls 'save_post' and 'wp_insert_post' on post id and post data just before
    2136  *                   returning.
    2137  *
    2138  * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database
    2139  *                       update or insert.
     2133 * @uses do_action() Calls 'save_post' and 'wp_insert_post' on post id and post data just before returning.
     2134 * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database update or insert.
    21402135 * @uses wp_transition_post_status()
    21412136 *
    2142  * @param array $postarr Optional. Overrides defaults.
     2137 * @param array $postarr Elements that make up post to insert.
    21432138 * @param bool $wp_error Optional. Allow return of WP_Error on failure.
    21442139 * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success.
    21452140 */
    2146 function wp_insert_post($postarr = array(), $wp_error = false) {
     2141function wp_insert_post($postarr, $wp_error = false) {
    21472142    global $wpdb, $wp_rewrite, $user_ID;
    21482143
Note: See TracChangeset for help on using the changeset viewer.