WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#31128 closed enhancement (invalid)

Fix code style issues in functions.wp-scripts.php

Reported by: katzwebdesign Owned by:
Milestone: Priority: normal
Severity: trivial Version: 4.2
Component: Script Loader Keywords:
Focuses: Cc:
PR Number:

Description

Braces should always be used, even when they are not required

Convert remaining code blocks to using [Brace Style](https://make.wordpress.org/core/handbook/coding-standards/php/#brace-style).

Attachments (1)

fix-code-style-brackets.diff (5.4 KB) - added by katzwebdesign 5 years ago.
Diff file to fix code style

Download all attachments as: .zip

Change History (4)

@katzwebdesign
5 years ago

Diff file to fix code style

#1 @katzwebdesign
5 years ago

  • Severity changed from normal to trivial

#2 @ocean90
5 years ago

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

Please note that formatting cleanup tickets are generally discouraged. Coding style fixes should be a result of more substantial changes: http://make.wordpress.org/core/2011/03/23/code-refactoring/. But thanks for the patch!

#3 @katzwebdesign
5 years ago

@ocean90 Okay, thanks for letting me know. I was on a roll :-)

Note: See TracTickets for help on using tickets.