[wp-trac] [WordPress Trac] #29505: Both update_user_option and update_user_meta returning false

WordPress Trac noreply at wordpress.org
Thu Sep 4 09:10:59 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 {{{
 if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){
     echo "true";
 }
 else{
     echo "False";
 }
 }}}



 {{{
 if(update_user_option( $user->ID, 'wp-lock-bg', serialize($bgs))){
     echo "true";
 }
 else{
     echo "False";
 }
 }}}

 Both code snippet returning false. I am getting correct user id, and
 option value. I have tested wp4.0 rc1 . Tested and working fine with 3.9.2

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29505>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list