WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#2672 closed defect (bug) (fixed)

JS error when editing post for Contributors

Reported by: mdawaffe Owned by: mdawaffe
Milestone: 2.1 Priority: normal
Severity: trivial Version: 2.1
Component: Administration Keywords: js bg|has-patch bg|commit
Focuses: Cc:

Description

On the edit post screen, there are two things which use the list manipulation JS: on the fly category addition and custom fields.

Currently, the JS is only included if ( current_user_can('manage_categories') ), so a user who can't will get a JS error when the custom fields JS runs.

Trivial patch attached.

Attachments (1)

admin-header.diff (379 bytes) - added by mdawaffe 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @mdawaffe
14 years ago

  • Keywords js bg|has-patch bg|commit added; JS removed

#2 @ryan
14 years ago

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

(In [3735]) Always load list manip js when editing. Props mdawaffe. fixes #2672

Note: See TracTickets for help on using tickets.