WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode Manager
[Plugin: Shortbus] Tools menu does not show Shortbus link (4 posts)

  1. YogieAnamCara
    Member
    Posted 2 years ago #

    Hi!

    For me the "Shortbus" link is neither displayed in Tools or Settings to configure / change or add any Shortcodes. Old installed shortcodes still work. No chance to get to the dialog in the backend!

    I run WP 3.2.1 in a multi site environment, domain mapping is installed as well.

    Any idea?

  2. enailor
    Member
    Posted 2 years ago #

    Similar issue here. As Admin, I can see the link. Another admin on the site can not. Not sure why that is, but like Yogie commented, the plugin and shortcodes seem to be working.

    Also running 3.2.1 in multi-site (plugin is network enabled), currently only using one site, and domain mapping is not being used.

  3. enailor
    Member
    Posted 2 years ago #

    I have found something interesting. Again, I am running WP 3.2.1 in multi-site mode, like YogieAnamCara is. I can access the plugin, but another Admin can not.

    Since we only have one site right now, I did not make the other Admin a Super Admin. On a hunch, I granted this admin Super Admin rights, and now the plugin is accessible.

    So this plugin, in multi-site mode, is looking for an Admin with Super Admin rights. This should be corrected so that any Admin can access this plugin. I would actually prefer that there was an option for the user level to be selected for access, so I could allow Editors to access if I so desired.

    Either way, I think I have isolated the bug... if the author would be so kind to update the coding, it would be greatly appreciated as I would like to use this for site and NOT grant Super Admin rights to every user that needs access to this plugin.

    Thanks
    Ed

  4. enailor
    Member
    Posted 2 years ago #

    Found the fix:

    Line 76 of the index.php file reads:
    add_submenu_page('tools.php', 'Shortcodes', 'Shortcodes', 'update_core', 'shortbus', array($this, 'admin_page'));

    The capability for this is "update_core." With wulti-site being added to the WP core, the "update_core" capability is resevered only for Super Admins. This capability should be changed to something more along the lines of "manage_options" or "activate_plugins" to allow normal Admins access.

    Changing line 76 to read the following fixed the issue:
    add_submenu_page('tools.php', 'Shortcodes', 'Shortcodes', 'manage_options', 'shortbus', array($this, 'admin_page'));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic