WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Pro
[resolved] No buttons for Authors (4 posts)

  1. Nikho
    Member
    Posted 1 year ago #

    Hi,
    after upgrading wp (to 3.5) and shortcode pro (latest version) shortcode buttons are not available for author. This behavior also prevent the editor to work at all.

    Everything work as expected for editors or administrators.

    Any solution?

    http://wordpress.org/extend/plugins/shortcodes-pro/

  2. Nikho
    Member
    Posted 1 year ago #

    it seems like while logged-in as an author WP isn't able to load shortcode-pro tinyMce plugins ... editor looks for them in the wrong place (dafault TinyMce plugins location) giving back a 404 and this breaks everything. But why?
    I'm still inspecting...

  3. Nikho
    Member
    Posted 1 year ago #

    Ok solved again!
    In class-shortcodepro-main.php around line 57-59 you'll find:

    if ( current_user_can( 'edit_posts' ) &&
    current_user_can( 'edit_pages' ) &&
    get_user_option( 'rich_editing' ) == 'true' ) {

    But Authors cannot edit_pages so removing the second line solve the problem:

    if ( current_user_can( 'edit_posts' ) &&
    get_user_option( 'rich_editing' ) == 'true' ) {
  4. egcd
    Member
    Posted 1 year ago #

    Thanks Nikho this mod work for me!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.