[wp-trac] [WordPress Trac] #15691: Network admin should have its own settings API

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 01:01:22 UTC 2012


#15691: Network admin should have its own settings API
-----------------------------+-----------------------------
 Reporter:  joostdevalk      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Network Admin    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+-----------------------------

Comment (by convissor):

 A separate API for network settings is unnecessary.  My Login Security
 Solution plugin, http://wordpress.org/extend/plugins/login-security-
 solution/, successfully uses the same API for both regular and multisite
 network installs.

 The main tweaks to make it fly are a few conditional statements for
 changing action and file names.  Take a look at the plugin's source code
 (it's only two files) and search the text for the handful of
 `is_multisite()` calls.

 In addition, this plugin is structured for easy reuse.  Just rename the
 directory and plugin file, then change a few class constants and
 properties and it'll run as a whole new plugin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15691#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list