Make WordPress Core

Opened 3 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's profile zenithcity Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.8.3
Component: Options, Meta APIs Keywords: needs-patch
Focuses: Cc:

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.