Changeset 15564 for trunk/wp-includes/post.php
- Timestamp:
- 09/05/2010 02:45:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15563 r15564 2126 2126 * 2127 2127 * @since 1.0.0 2128 * @link http://core.trac.wordpress.org/ticket/9084 Bug report on 'wp_insert_post_data' filter.2129 2128 * @uses $wpdb 2130 2129 * @uses $wp_rewrite 2131 2130 * @uses $user_ID 2132 *2133 2131 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update. 2134 2132 * @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. 2140 2135 * @uses wp_transition_post_status() 2141 2136 * 2142 * @param array $postarr Optional. Overrides defaults.2137 * @param array $postarr Elements that make up post to insert. 2143 2138 * @param bool $wp_error Optional. Allow return of WP_Error on failure. 2144 2139 * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success. 2145 2140 */ 2146 function wp_insert_post($postarr = array(), $wp_error = false) {2141 function wp_insert_post($postarr, $wp_error = false) { 2147 2142 global $wpdb, $wp_rewrite, $user_ID; 2148 2143
Note: See TracChangeset
for help on using the changeset viewer.