Make WordPress Core

Opened 4 years ago

Closed 7 months ago

#42200 closed defect (bug) (invalid)

Code Editor: false error on "@charset"

Reported by: joneiseman Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: administration Cc:


When I edit style.css in the code editor it reports a false error for the following line:

@charset "UTF-8";

Attachments (1)

charset.png (23.8 KB) - added by joneiseman 4 years ago.

Download all attachments as: .zip

Change History (3)

4 years ago

#1 @helen
4 years ago

  • Keywords close added

It seems that @charset needs to be the very first element in the stylesheet and not preceded by anything, not even comments:

Not sure how that plays out with the way themes need to define headers, but in this case the linter is correct that you have an error.

#2 @desrosj
7 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing this one out. It seems the linter was indeed working as expected.

Note: See TracTickets for help on using tickets.