WordPress.org

Ready to get started?Download WordPress

Forums

WP SlimStat
[resolved] Incorrect links on SlimStat dashboard in WP Multisite (4 posts)

  1. nlegg
    Member
    Posted 2 years ago #

    Hello,

    I have WP 3.1.3 set up as a multisite installation using sub-directories (rather than sub-domains). When viewing the SlimStat dashboard on any of my sites, say, blogs.myuniversity.edu/science, all hyperlinks (e.g. the Dashboard, Visitors, Traffic Sources, etc. tabs at the top; the Daily pageviews graph points; the 'More' links in the Recent Known Visitors widget; all links in the Spy View widget, and so on) point to blogs.myuniversity.edu/wp-admin/index.php

    As such, when I click on any of these links my browser moves from my /science site to my / site - this is unfortunate, since stats for a particular site cannot be viewed without manual address bar manipulation.

    A quick look at the code (e.g. wp-slimstat/view/index.php) shows that it is using $_SERVER['PHP_SELF'] to create the link addresses. Changing all instances of this to admin_url() or (more precisely) admin_url('index.php') seems to rectify the issue for me.

    Thoughts?

    http://wordpress.org/extend/plugins/wp-slimstat/

  2. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Hi there,

    you made a really good point, indeed. I hadn't thought about that from a multisite point of view ;) I have already fixed the problem, version 2.5.1 will include it.

    Thank you for pointing this out!

    PS: a vote for my plugin would be a nice way to show your appreciation.

    Camu

  3. nlegg
    Member
    Posted 2 years ago #

    Hi camu,

    Sounds great! Thanks for your reply (and for creating the plugin in the first place). Definitely voted.

  4. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you, really appreciated!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic