WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 10 months ago

#43907 new enhancement

JS WordPress Coding Standards — Add Space In The Method Call

Reported by: saqibameen Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.1
Component: Comments Keywords: needs-testing has-patch
Focuses: coding-standards Cc:

Description

According to JS WordPress standards, there should be a space right after the opening bracket and closing bracket of the function call. However, in the

wp-includes/js/comment-reply.js

there's no space at function call on line 161.

I am not sure if there's any other reason for being so. But all other function calls seem to follow that standard. Don't know if I am missing something? Would love to know thoughts on it.

Also, I have added the patch.

Attachments (3)

patch.diff (950 bytes) - added by saqibameen 2 years ago.
Patch for the ticket.
screenshot.png (15.6 KB) - added by saqibameen 2 years ago.
Screenshot of files difference
43907.diff (1.2 KB) - added by Hareesh Pillai 10 months ago.
Patch refreshed

Download all attachments as: .zip

Change History (5)

@saqibameen
2 years ago

Patch for the ticket.

@saqibameen
2 years ago

Screenshot of files difference

#1 @pento
21 months ago

  • Version trunk deleted

#2 @Hareesh Pillai
10 months ago

  • Keywords has-screenshots removed
  • Version set to 5.1

@Hareesh Pillai
10 months ago

Patch refreshed

Note: See TracTickets for help on using tickets.