Make WordPress Core

Opened 18 years ago

Closed 18 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 Owned by:
Priority: normal Milestone: 2.8
Component: Administration Version:
Severity: normal Keywords: suggest, admin-ajax, has-patch
Cc: Focuses:

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 18 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ryan
18 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
18 years ago

  • Keywords has-patch added
  • Summary Tag auto suggest in admin doesn't work if user role is less than editor → 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
18 years ago

  • Resolution → fixed
  • Status new → 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.