[wp-trac] [WordPress Trac] #20651: Inconsistent MS API: delete_site_option action hook is only called AFTER deletion, unlike delete_option
WordPress Trac
wp-trac at lists.automattic.com
Thu May 10 09:54:38 UTC 2012
#20651: Inconsistent MS API: delete_site_option action hook is only called AFTER
deletion, unlike delete_option
--------------------------+-----------------------------------
Reporter: danielnashnz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.2
Severity: normal | Keywords: delete_site_option MS
--------------------------+-----------------------------------
Unlike the delete_option action hook, the delete_site_option action hook
is only called AFTER deletion of the row from the sitemeta table - making
it difficult to capture the expiring value (for instance), unless you know
its precise option key name ( and hook it using
pre_delete_site_option_{$option} ).
Suggest introducing a pre-deletion, non-specific action hook call named
"pre_delete_option" for options and "pre_delete_site_option" for site
options, for consistency.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20651>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list