[wp-trac] [WordPress Trac] #10788: Standardize hooks across the transient and options APIs

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 3 09:35:09 UTC 2010


#10788: Standardize hooks across the transient and options APIs
-------------------------+--------------------------------------------------
 Reporter:  dd32         |       Owner:  westi    
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Plugins      |     Version:  2.9      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by nacin):

 Giant patch attempts to standardize the hooks in the options and
 transients APIs (including site options and transients). Adds lots of
 inline documentation and standardizes whatever it can.

 This is against trunk, r12933. Probably will need some additional passes,
 but there's a ton of green and red in this diff already.

 I've gone through it line by line for typos and tested all the functions,
 though it could use a sanity check.

 The only backwards incompatibility is as follows: Actions that are run
 after an option is added, deleted, or updated should only fire when the db
 query was successful. (@todo - add_option()). Actions in add_site_option()
 and delete_site_option() currently run even on fail, but in this patch
 they would be brought inside a {{{ if ( $results ) }}} statement like the
 rest of them.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10788#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list