WordPress.org

Make WordPress Core

Changes between Initial Version and Version 8 of Ticket #15036


Ignore:
Timestamp:
03/20/11 14:14:19 (3 years ago)
Author:
scribu
Comment:

Ran into this myself.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15036

    • Property Cc mikeschinkel@… added
    • Property Keywords has-patch commit added
    • Property Milestone changed from Awaiting Review to Future Release
    • Property Summary changed from Add 2nd boolean of wp_error to wp_update_post() to allow passthru to wp_insert_post() to Add 2nd boolean parameter of wp_error to wp_update_post() to allow passthru to wp_insert_post()
  • Ticket #15036 – Description

    initial v8  
    33`wp_update_post()` currently sets values and then delegates the work of updating to `wp_insert_post()`. ''Unfortunately''  `wp_update_post()` does '''''not''''' accept a second boolean parameter of  `wp_error` meaning it cannot receive back the same failure information that `wp_insert_post()` can. 
    44 
    5 '''So this request is very simple: accept `wp_error` as an optional second parameter for `wp_update_post()` with a default of `false` and then to pass wp_error on through to `wp_insert_post()`.''' 
     5So this request is very simple: accept `wp_error` as an optional second parameter for `wp_update_post()` with a default of `false` and then to pass wp_error on through to `wp_insert_post()`.