Changeset 49173
- Timestamp:
- 10/16/2020 09:38:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49172 r49173 3599 3599 * 3600 3600 * @since 1.0.0 3601 * @since 2.6.0 Added the `$wp_error` parameter to allow a WP_Error to be returned on failure. 3601 3602 * @since 4.2.0 Support was added for encoding emoji in the post title, content, and excerpt. 3602 3603 * @since 4.4.0 A 'meta_input' array can now be passed to `$postarr` to add post meta data. 3604 * @since 5.6.0 Added the `fire_after_hooks` parameter. 3603 3605 * 3604 3606 * @see sanitize_post() … … 3647 3649 * } 3648 3650 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 3649 * @param bool $fire_after_hooks Whether to fire the after insert hooks. Default true.3651 * @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true. 3650 3652 * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure. 3651 3653 */ … … 4326 4328 * 4327 4329 * @since 1.0.0 4330 * @since 3.5.0 Added the `$wp_error` parameter to allow a WP_Error to be returned on failure. 4331 * @since 5.6.0 Added the `fire_after_hooks` parameter. 4328 4332 * 4329 4333 * @param array|object $postarr Optional. Post data. Arrays are expected to be escaped, 4330 4334 * objects are not. Default array. 4331 * @param bool $wp_error Optional. Allow return ofWP_Error on failure. Default false.4332 * @param bool $fire_after_hooks Whether to fire the after insert hooks. Default true.4335 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 4336 * @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true. 4333 4337 * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure. 4334 4338 */ … … 5823 5827 * @since 2.0.0 5824 5828 * @since 4.7.0 Added the `$wp_error` parameter to allow a WP_Error to be returned on failure. 5829 * @since 5.6.0 Added the `fire_after_hooks` parameter. 5825 5830 * 5826 5831 * @see wp_insert_post() … … 5830 5835 * @param int $parent Optional. Parent post ID. 5831 5836 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 5832 * @param bool $fire_after_hooks Whether to fire the after insert hooks. Default true.5837 * @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true. 5833 5838 * @return int|WP_Error The attachment ID on success. The value 0 or WP_Error on failure. 5834 5839 */
Note: See TracChangeset
for help on using the changeset viewer.