[wp-trac] [WordPress Trac] #26929: add_site_option signature should match add_option signature
WordPress Trac
noreply at wordpress.org
Fri Jan 24 20:39:14 UTC 2014
#26929: add_site_option signature should match add_option signature
------------------------------+-----------------------------
Reporter: ChrisWiegman | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options and Meta | Version: 3.8
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
On plugins that are multisite compatible it is much safer to save options
using add_site_option which falls back to add_option if not multisite. The
catch is using this method the autoload cannot be set even for the non-
multisite compatible.
Attached is a simple patch the passes the autoload through from
add_site_option to add_option if present without affecting any multisite
functionality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26929>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list