[wp-trac] [WordPress Trac] #25773: can not update option in wp 3.7 and hanging in wp_clear_scheduled_hook()

WordPress Trac noreply at wordpress.org
Wed Oct 30 14:14:48 UTC 2013


#25773: can not update option in wp 3.7 and hanging in wp_clear_scheduled_hook()
--------------------------+-----------------------------
 Reporter:  dimagsv       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache         |    Version:  3.7.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 update_option() must update option in memory cache and in database, but
 updates only in database. New option value not updated in memory cache
 when value in database is equal to new option value bacause zero (0) rows
 affected and update_option() return error (false).
 wp_clear_scheduled_hook() hanging because cannot delete value from 'cron'
 option due this bug in update_option().
 I think this code in update_option()
 {{{
 if ( ! $result )
  return false;
 }}}
 should be replaced with
 {{{
 if ( $result === false )
  return false;
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25773>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list