[Plugin: WP Widget Cache] WPMU restrict to is_site_admin() = true (4 posts)

  1. webmaestro
    Posted 6 years ago #

    Might there be an option to restrict the configuration so that only SITE_ADMINS can set the 'global' preferences (not 'Administrator' but WPMU 'Site Admins'), perhaps using something along the lines this pseudo-patch to line 77 of widget-cache.php (not tested!):

    if((is_admin()&&!isset($wpmu_version)) || (is_site_admin()&&isset($wpmu_version)))
  2. AndrewZhang
    Posted 6 years ago #


    See you again:)

    If want to hidden settings page, you might just add the conditions to these lines.

    add_action('admin_menu', array(&$this,'wp_add_options_page'));
    add_action('dashmenu', array(&$this,'dashboard_delete_wg_cache'));

  3. webmaestro
    Posted 6 years ago #

    I would prefer not to add/modify code, for plugins and CORE components I use where possible. More preferable (for me at least) is to have the code updated so my edits won't have to be re-merged for each release.

  4. Ovidiu
    Posted 6 years ago #

    I second this. I'd love to use this with wpmu

Topic Closed

This topic has been closed to new replies.

About this Topic