[wp-trac] [WordPress Trac] #20116: Welcome User Email in Multisite Can't Be Changed

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 22:34:05 UTC 2012


#20116: Welcome User Email in Multisite Can't Be Changed
--------------------------+--------------------
 Reporter:  Ipstenu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3.2
Component:  Multisite     |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by nacin):

 So I finally looked at the root issue. The option does not exist, but when
 update_site_option() calls get_site_option(), it is told that it has a
 value, thanks to the filter. So instead of passing things off to
 add_site_option() to do an insert, it does an update, and there's now row
 with that option name to update.

 That is lame, and affects get_option/update_option as well. I think we
 need *option_exists() methods in the future as a way to skip the filters
 in get_*.

 Regardless, I came up with a targeted fix for the 3.3 branch. Attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20116#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list