[wp-trac] [WordPress Trac] #28701: Deleted option is not deleted if value was ever null
WordPress Trac
noreply at wordpress.org
Tue Jul 1 04:16:54 UTC 2014
#28701: Deleted option is not deleted if value was ever null
--------------------------------+------------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 2.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Comment (by rmccue):
Also occurs if you use `update_option` later rather than adding with
`null`:
{{{
add_option( 'testingkeynew', 'oldvalue' );
update_option( 'testingkeynew', 'firstvalue' );
update_option( 'testingkeynew', null );
update_option( 'testingkeynew', 'secondvalue' );
delete_option( 'testingkeynew' );
var_dump( get_option( 'testingkeynew', 'default' ) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28701#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list