Make WordPress Core

Changeset 55686


Ignore:
Timestamp:
04/26/2023 02:25:19 PM (19 months ago)
Author:
oandregal
Message:

Themes: remove unused parameter in query for get_block_templates().

Remove the theme parameter from the query passed to get_block_templates(). It is not used or documented. This removal doesn't have any effect in the code, as the data is ignored anyway.

Props draganescu, audrasjb, davidbaumwald, hellofromTonya.
Fixes #57736.

File:
1 edited

Legend:

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

    r55436 r55686  
    146146    // Find all potential templates 'wp_template' post matching the hierarchy.
    147147    $query     = array(
    148         'theme'    => get_stylesheet(),
    149148        'slug__in' => $slugs,
    150149    );
Note: See TracChangeset for help on using the changeset viewer.