WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
Fix so no need to force into "must-use" plugins folder (2 posts)

  1. anmari
    Member
    Posted 2 years ago #

    Hi, mu-plugin stands for "must use" plugins not "multi user".

    If you swop all instances of

    $cimy_uef_plugins_dir == "mu-plugins"

    for

    is_network_admin()

    and then "network activate" the plugin from the network admin plugin list, one can achieve similar effect in a the more 'wordpress way. Then folks can then more easily activate and deactivate when testing.

    It also allows the possibility of NOT network activating it and having the subsites activate as they wish.

    Also suggest take that cimy_uef_mu_activation.php out of the must-use folder. It does not disappear when network deactivating the plugin, leaving those extra menu options, which was somewhat annoying.

    Also you may wish to fix warnings when there are no hidden fields:
    eg:
    Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\wp\wp-content\plugins\cimy-user-extra-fields\cimy_uef_admin.php on line 1420

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    It cannot work like that, because if the plug-in is always under the "mu" directory then can be detected for all users, instead is_network_admin() returns true only when you are in the network admin section.

    Instead the idea of having it under "mu" is for ALL users then uses the super admin defined extra fields.
    So your patch described like that won't work, unless you elaborate it a bit.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic