[wp-trac] [WordPress Trac] #3692: [4798] breaks some option usage scenarios including permalinks.

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 26 23:13:04 GMT 2007


#3692: [4798] breaks some option usage scenarios including permalinks.
----------------------------+-----------------------------------------------
 Reporter:  westi           |       Owner:  west  
     Type:  defect          |      Status:  new   
 Priority:  normal          |   Milestone:  2.2   
Component:  Administration  |     Version:        
 Severity:  normal          |    Keywords:  commit
----------------------------+-----------------------------------------------
 [4798] Breaks the page permalinks on my test blog.

 When you update the permalinks on option-permalinks the following happens:

  1. delete_option is called for 'page_uris'.
  1. update_option is called for 'page_uris'.
  1. This calls into get_option which marks the option as non-existent
  1. Then this calls add_option (as the option didn't exist) which adds the
 option to the db
  1. Then update_option returns.

 Patch to fix attached
 This means we have the option in the db (and cache) but we also have
 cached that the option doesn't exist.

 get_option listens to the notoption cache above all else so we can no
 longer access the option!

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


More information about the wp-trac mailing list