The MU forums have moved to

Wordpress Admin Bar links (5 posts)

  1. mrarrow
    Posted 14 years ago #

    Something wierd is going on with the way that the Wordpress Admin Bar in WPMU 2.7 writes URL's - specifically for plugins, rather than the default Admin options. At first I thought it was to do with a dodgy plugin, but I'm pretty sure its actually how the Admin Bar (incorrectly) constructs URL's.

    For instance, cformsII adds itself to the Wordpress Admin Bar with the following options:

    --- TITLE ---
    --- DROPDOWN MENU ---
    cforms (repeated from above)
    Global Settings

    Note that the first and second items in each dropdown should point to the same URL - except it seems not for plugins (see in the example above, the difference between the title URL and the option beneath it - it's missing admin.php?page= from the URL string). Clicking that second link produces a nasty 500 Server error, as its pointing to an invalid URL.

    Looking at the code for cformsII, it appears that WPMU core code is repeating and constructing this second URL and its doing it wrong! Interestingly, exactly the same thing happens for WP-PostRatings plugin as well as others.

    Any ideas - I'm pretty sure its a bug, but was wondering whether anyone had any suggestions...

  2. tdjcbe
    Posted 14 years ago #

    It's been discussed many many times previously in the forums as well as the trac. Works for some and not others. It was removed in 2.7.1.

  3. mrarrow
    Posted 14 years ago #

    Thanks tdjcbe. Sorry, I did do searches but hadn't come across any appropriate discussions. At least I know its resolved and its not me going mad!

  4. tdjcbe
    Posted 14 years ago #

    I can;t copy and paste right now. Maybe Andrea or someone else can link to the ticket(s) on trac that discussed the workarounds and fixes.

  5. mrarrow
    Posted 14 years ago #

    No, that's fine - I believe you ;-)

    Anyway, useful to have this post in here too for others that have also missed it!

About this Topic