Make WordPress Core


Ignore:
Timestamp:
11/22/2024 07:17:35 PM (3 months 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.

File:
1 edited

Legend:

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