WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP Overview (lite) Dashboard Footer Memory Usage] request: dashboard widget not for subscri

[Resolved] [Plugin: WP Overview (lite) Dashboard Footer Memory Usage] request: dashboard widget not for subscri

  • RavanH
    Participant

    @ravanh

    Hi,

    This very useful plugin — THANKS ! 🙂 — provides me as admin very useful info. But I have noticed that regular Subscribers get to see the same info.

    For most it’s just confusing, for others it’s too much info on server background and in that respect it might be considered a security risk. At least for sites where user registration is open…

    Could you please allow only the admin (and super admin on multi-site installations) to see the dashboard widget and footer info? Or at least NOT regular subscribers?

    Thanks 🙂

    http://wordpress.org/extend/plugins/wp-overview-lite/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor sLaNGjIs Team
    Blocked

    @slangji

    Well 🙂 I take much pleasure this report. I intend to implement this change in the future. I think the change will not be available before the release of WordPress 3.2. I am currently working on other changes to the plugin, in particular on the new memory management according to the ticket, http://core.trac.wordpress.org/ticket/13847

    P.S. … you are free to implement this change yourself, if you judge it necessary, and I will be happy to put it in the plugin code … 😉

    Bye 🙂

    RavanH
    Participant

    @ravanh

    P.S. … you are free to implement this change yourself, if you judge it necessary, and I will be happy to put it in the plugin code … 😉

    I suggest adding if (!current_user_can('unfiltered_html')) return; like this:

    function wpo_dashboard() {
    	if (!current_user_can('unfiltered_html'))
    		return;
    	wp_add_dashboard_widget('wp_overview_lite_mu_dashboard_widget', 'Overview',array(&$this,'wpo_output'));
    }

    This results in the widget only showing for Admin on a regular WP installation and only for Super Admin on a Multi-site setup (as long as the plugin Unfiltered HTML is not running)… It will leave the short memory usage message in the footer, which is fine. It can even serve some purpose when a normal Site Admin runs into problems and he/she reports about them to Super Admin and mentions high MEM values 🙂

    Plugin Contributor sLaNGjIs Team
    Blocked

    @slangji

    Try DEVELOPMENTAL version 😉

    Thanks! 🙂

    Very useful plugin. Thanks!

    Plugin Contributor sLaNGjIs Team
    Blocked

    @slangji

    Thanks you cmdrmatt 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: WP Overview (lite) Dashboard Footer Memory Usage] request: dashboard widget not for subscri’ is closed to new replies.