[wp-trac] [WordPress Trac] #29505: Both update_user_option and update_user_meta returning false
WordPress Trac
noreply at wordpress.org
Thu Sep 4 20:31:52 UTC 2014
#29505: Both update_user_option and update_user_meta returning false
--------------------------+------------------------------
Reporter: miqdadk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by shooper):
Getting same behaviour as OP, but also getting same behaviour in 3.9.2.
(Slightly modified code, my 3.9.2 test site doesn't have a user ID # 1)
{{{
/*
Plugin Name: Test Trac Bug # 29505
Plugin URI: https://core.trac.wordpress.org/ticket/29505
*/
function plugin_activated(){
$bgs = 'a:1:{i:0;s:93:"http://192.168.1.175/delta/wp4.0rc/wp-
content/plugins/lock-it-up/templates/img/bg/default.jpg";}';
global $current_user;
delete_user_option( $current_user->ID, 'wp-lock-bg-solid');
//deleting one user option
var_dump(update_user_meta( $current_user->ID, 'wp-lock-bg-solid',
'test'));
die();
}
register_activation_hook( __FILE__, 'plugin_activated');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29505#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list