[wp-trac] [WordPress Trac] #18088: Network Admin Email setting in wp-admin/network/settings.php fails silently

WordPress Trac noreply at wordpress.org
Tue Apr 26 17:18:13 UTC 2016


#18088: Network Admin Email setting in wp-admin/network/settings.php fails silently
--------------------------------+----------------------------------------
 Reporter:  kawauso             |       Owner:
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  Future Release
Component:  Networks and Sites  |     Version:  3.2
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  administration, multisite
--------------------------------+----------------------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch


Comment:

 Replying to [comment:8 jeremyfelt]:
 > If an invalid email address is entered in the network admin email input
 box and the settings are saved, the network admin email does not change
 and the message at the top of the screen is green and says "Options
 saved." Lies!
 >
 > `sanitize_option()` does store the error into `add_settings_error()`,
 but nothing on the network settings page does anything to present that to
 the user. I haven't dug any further than that.

 The problem is that the settings errors are not stored in a transient and
 that the function to display settings errors is not called on `wp-
 admin/network/settings.php`. [attachment:18088.diff] is a possible fix for
 this problem, basically making `get_settings_errors()` network-compatible
 and using it in the Network Settings screen.

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


More information about the wp-trac mailing list