Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#54717 closed defect (bug) (invalid)

Remove unused space from admin-ajax.php

Reported by: krupalpanchal's profile krupalpanchal Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

There is unused space while declaring the variable ( $core_actions_post ) in the admin-ajax.php file. So According to the WordPress PHP coding standard, it should be removed.

Attachments (1)

54717.diff (1.1 KB) - added by krupalpanchal 4 years ago.
Created Patch

Download all attachments as: .zip

Change History (3)

@krupalpanchal
4 years ago

Created Patch

#1 @krupalpanchal
4 years ago

  • Keywords has-patch added

#2 @costdev
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version trunk deleted

This spacing is used to align with $core_actions_post_deprecated in the block above.

In addition, PHPCS throws a warning when the spaces are removed:

156 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
(Generic.Formatting.MultipleStatementAlignment.NotSameWarning)


Tip: Use the following command to check against PHPCS:

vendor/bin/phpcs <relative/path/to/file>
Note: See TracTickets for help on using tickets.