Make WordPress Core


Ignore:
Timestamp:
01/20/2022 11:51:22 PM (4 years ago)
Author:
audrasjb
Message:

Docs: Replace "Current theme" with "Active theme" in various DocBlocks.

This change replaces "Current theme" with "Active theme" in various DocBlocks for better consistency with user-facing strings.

Follow-up to [52580].

Props Presskopp, audrasjb, costdev.
Fixes #54831.
See #54770.

File:
1 edited

Legend:

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

    r52597 r52610  
    161161    $parent_theme_base_path = get_template_directory() . DIRECTORY_SEPARATOR;
    162162
    163     // Is the current theme a child theme, and is the PHP fallback template part of it?
     163    // Is the active theme a child theme, and is the PHP fallback template part of it?
    164164    if (
    165165        strpos( $fallback_template, $theme_base_path ) === 0 &&
     
    181181        ) {
    182182            // Unfortunately, we cannot trust $templates[0]->theme, since it will always
    183             // be set to the current theme's slug by _build_block_template_result_from_file(),
    184             // even if the block template is really coming from the current theme's parent.
    185             // (The reason for this is that we want it to be associated with the current theme
     183            // be set to the active theme's slug by _build_block_template_result_from_file(),
     184            // even if the block template is really coming from the active theme's parent.
     185            // (The reason for this is that we want it to be associated with the active theme
    186186            // -- not its parent -- once we edit it and store it to the DB as a wp_template CPT.)
    187187            // Instead, we use _get_block_template_file() to locate the block template file.
Note: See TracChangeset for help on using the changeset viewer.