WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#2672 closed defect (bug) (fixed)

JS error when editing post for Contributors

Reported by: mdawaffe Owned by: mdawaffe
Priority: normal Milestone: 2.1
Component: Administration Version: 2.1
Severity: trivial Keywords: js bg|has-patch bg|commit
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 7 years ago.

Download all attachments as: .zip

Change History (3)

mdawaffe7 years ago

comment:1 mdawaffe7 years ago

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

comment:2 ryan7 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.