Forums

tag suggestions not working as user (3 posts)

  1. Edmond
    Member
    Posted 3 years ago #

    Hi,

    when adding new tags to a post, there is no box with tag suggestions popping up; that is, there actually _appears_ a box, but instead of tag suggestions it just contains a "-1". This only happens when looged-in as a normal WP user. When signed in as administrator, the tag hints show up as expected.

    Any idead what could be causing this (and how to fix it)?

    Thanks in advance,

    --Edmond

  2. WoodiE
    Member
    Posted 3 years ago #

    Edmond,

    I'm experiencing a similar problem with the new 2.7 RC2 though nothing is suggested in the Tags box at all even for my admin account.

  3. Flegme
    Member
    Posted 3 years ago #

    Hi all,
    i found a way to correct the "bug". I think it was a developper's choice to only permit to advanced users (those who can manage categories) to use tags ;).
    So, to correct the comportment you have to edit wp-admin/admin-ajax.php.
    Line 43 and line 426 you'll find : if ( !current_user_can( 'manage_categories' ) )
    comment this line like this :
    //if ( !current_user_can( 'manage_categories' ) )
    and replace it by :
    if ( !current_user_can( 'read' ) )
    By the way a user who can read posts will be able to use tags in the create/edit area ;).

    PS. for information this "bug", and this solution apply for the 2.7 release too.

    Amicably,

    Pierre

Topic Closed

This topic has been closed to new replies.

About this Topic