Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2432 closed defect (bug) (fixed)

"Add Category" on Write screen should not appear for users who do not have "manage_categories" cap

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile markjaquith
Milestone: Priority: low
Severity: normal Version: 2.0.1
Component: Administration Keywords: bg|has-patch bg|commit
Focuses: Cc:

Description

if a user does not have the "manage_categories" capability, they can attempt to add categories "on the fly" from the Write screen, but they'll get a message saying that they can't. This patch prevents the JS that displays the "add" button and message from even loading for users who lack the capability. Should make the page load faster for them too.

Attachments (1)

hide_add_cat_if_user_cannot_add_cats.diff (434 bytes) - added by markjaquith 19 years ago.
Patch for current SVN

Download all attachments as: .zip

Change History (6)

@markjaquith
19 years ago

Patch for current SVN

#1 @markjaquith
19 years ago

  • Status changed from new to assigned

#2 @ryan
19 years ago

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

(In [3516]) Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432

#3 @ryan
19 years ago

  • Resolution set to fixed

(In [3553]) Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432

#4 @ryan
19 years ago

  • Milestone changed from 2.1 to 2.0.2

#5 @(none)
18 years ago

  • Milestone 2.0.2 deleted

Milestone 2.0.2 deleted

Note: See TracTickets for help on using tickets.