WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 3 weeks 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:
PR Number:

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 20 months ago.
Patch for the ticket.
screenshot.png (15.6 KB) - added by saqibameen 20 months ago.
Screenshot of files difference
43907.diff (1.2 KB) - added by Hareesh Pillai 3 weeks ago.
Patch refreshed

Download all attachments as: .zip

Change History (5)

@saqibameen
20 months ago

Patch for the ticket.

@saqibameen
20 months ago

Screenshot of files difference

#1 @pento
11 months ago

  • Version trunk deleted

#2 @Hareesh Pillai
3 weeks ago

  • Keywords has-screenshots removed
  • Version set to 5.1

@Hareesh Pillai
3 weeks ago

Patch refreshed

Note: See TracTickets for help on using tickets.