[wp-trac] [WordPress Trac] #27199: When site_name is missing from sitemeta table, it cannot be updated by Network > Settings screen

WordPress Trac noreply at wordpress.org
Sun Mar 2 04:57:27 UTC 2014


#27199: When site_name is missing from sitemeta table, it cannot be updated by
Network > Settings screen
--------------------------------+------------------------
 Reporter:  JPry                |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  3.9
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+------------------------

Comment (by jeremyfelt):

 Replying to [comment:5 JPry]:
 > * We could declare the global `$current_site` object inside the
 `get_current_site_name()` function, perhaps **only if** `$current_site` is
 not passed to the function.

 I would go for this option. We reduced the use of the `$current_site`
 global quite a bit in #25158, so it would be nice if we could keep it
 simple and grab from `get_current_site()` inside `get_current_site_name()`
 if something has not been passed. The naming of the function kind of
 throws things off as is since there isn't much "current" about it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27199#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list