JS error when editing post for Contributors
|Reported by:||mdawaffe||Owned by:||mdawaffe|
|Severity:||trivial||Keywords:||js bg|has-patch bg|commit|
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.