Make WordPress Core

Changeset 58768 for trunk


Ignore:
Timestamp:
07/19/2024 03:54:41 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return value for _get_block_templates_files().

The function returns null if $template_type is not wp_template or wp_template_part.

Follow-up to [52062].

Props dilipbheda, mukesh27.
Fixes #61705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r58615 r58768  
    356356 * }
    357357 *
    358  * @return array Template
     358 * @return array|null Template files on success, null if `$template_type` is not matched.
    359359 */
    360360function _get_block_templates_files( $template_type, $query = array() ) {
Note: See TracChangeset for help on using the changeset viewer.