Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#48270 new enhancement

Add space before first parentheses of if condition for JS consistency

Reported by: mehidi258's profile mehidi258 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.3
Component: Administration Keywords: has-patch
Focuses: javascript, coding-standards Cc:

Description


Attachments (3)

post.diff (400 bytes) - added by mehidi258 5 years ago.
post.2.diff (461 bytes) - added by mehidi258 5 years ago.
48270.diff (992 bytes) - added by itowhid06 5 years ago.

Download all attachments as: .zip

Change History (6)

@mehidi258
5 years ago

#1 @itowhid06
5 years ago

Hello @mehidi258, welcome to WordPress Trac!

Are you referring to wp-admin/js/post.js? I believe that one is compiled!

@mehidi258
5 years ago

#2 @SergeyBiryukov
5 years ago

  • Component changed from General to Administration
  • Focuses coding-standards added

#3 @itowhid06
5 years ago

As far as I'm concerned, These JS files are excluded from Linting. Also there is specific mentions of not refactoring these files in here
https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/#code-refactoring
Yet I am inclined to upload to cleaner patch if this seems to be qualified to patch :)

@itowhid06
5 years ago

Note: See TracTickets for help on using tickets.