Make WordPress Core

Opened 5 years ago

#54805 new defect (bug)

When on the /wp-admin/network/site-settings.php network settings page, calling the update_option() always add the setting

Reported by: zenithcity Owned by:
Priority: normal Milestone: Awaiting Review
Component: Options, Meta APIs Version: 5.8.3
Severity: minor Keywords: needs-patch
Cc: Focuses:

Description

When on the network settings (/wp-admin/network/site-settings.php), the udpate_option() used to update the changed settings always adds the settings whenever the form is submitted. So instead of firing the "update_option" action hook after the settings are updated, it still fires the add_option action hook every time!

Obviously, this should give an error but because there's a bailer when adding option using ON DUPLICATE KEY UPDATE, no error is shown.

Change History (0)

Note: See TracTickets for help on using tickets.