Make WordPress Core

Changeset 59453


Ignore:
Timestamp:
11/22/2024 07:17:35 PM (9 days ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Explicitly return null instead of coercing void.

This addresses two instances where a function that is documented as returning {someType}|null doesn't explicitly return null.

Affected functions:

  • array_key_first()
  • WP_REST_Posts_Controller::handle_terms()

Follow-up to [38832], [52038].

Props justlevine.
See #52217.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.