Make WordPress Core

Opened 6 weeks ago

Last modified 43 hours ago

#49542 new task (blessed)

Coding Standards fixes for WP 5.5

Reported by: SergeyBiryukov Owned by:
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: coding-standards Cc:



Change History (3)

#1 @SergeyBiryukov
3 days ago

In 47550:

Coding Standards: Use strict type check for in_array() and array_search() where strings are involved.

This reduces the number of WordPress.PHP.StrictInArray.MissingTrueStrict issues from 486 to 50.

Includes minor code layout fixes for better readability.

See #49542.

#2 @SergeyBiryukov
3 days ago

In 47551:

Coding Standards: Switch WordPress.PHP.YodaConditions.NotYoda back to error level.

This was marked as a warning in [45665] until all the issues associated with the sniff are addressed, so that linting on Travis could run across the entire codebase.

With all the instances now addressed, this override is no longer needed.

Follow-up to [47054], [47218], [47219].

See #49542.

#3 @SergeyBiryukov
43 hours ago

In 47552:

Coding Standards: Whitelist date_default_timezone_set() usage in wp-settings.php.

See #49542.

Note: See TracTickets for help on using tickets.