WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#48270 new enhancement

Add space before first parentheses of if condition for JS consistency

Reported by: 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 9 months ago.
post.2.diff (461 bytes) - added by mehidi258 9 months ago.
48270.diff (992 bytes) - added by itowhid06 9 months ago.

Download all attachments as: .zip

Change History (6)

@mehidi258
9 months ago

#1 @itowhid06
9 months ago

Hello @mehidi258, welcome to WordPress Trac!

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

@mehidi258
9 months ago

#2 @SergeyBiryukov
9 months ago

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

#3 @itowhid06
9 months 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
9 months ago

Note: See TracTickets for help on using tickets.