Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#8651 closed defect (bug) (fixed)

Tag ajax search in admin doesn't work if user role is less than editor

Reported by: yoavf's profile yoavf Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Administration Keywords: suggest, admin-ajax, has-patch
Focuses: Cc:

Description

in admin-ajax.php (case 'inline-save-tax') there's the following test:

if ( ! current_user_can('manage_categories') )

Contributors cannot manage_categories, so they cannot get ajax tag suggestions, and instead they get "-1"

Attachments (1)

ajax-tag-search.patch (440 bytes) - added by yoavf 16 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ryan
16 years ago

You mean ajax-tag-search? I think requiring edit_posts is sufficient for tag suggest. It doesn't create new tags, just fetches existing ones.

#2 @yoavf
16 years ago

  • Keywords has-patch added
  • Summary changed from Tag auto suggest in admin doesn't work if user role is less than editor to Tag ajax search in admin doesn't work if user role is less than editor

Sorry about that, I did mean ajax-tag-search.
Added a patch with ('edit_posts') instead of ('manage_categories')

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10719]) Allow users with edit_posts cap to use ajax tag search. Props yoavf. fixes #8651

Note: See TracTickets for help on using tickets.