Make WordPress Core


Ignore:
Timestamp:
01/20/2022 11:51:22 PM (5 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-admin/includes/class-theme-upgrader.php

    r52580 r52610  
    610610
    611611        /**
    612          * Turn on maintenance mode before attempting to upgrade the current theme.
     612         * Turn on maintenance mode before attempting to upgrade the active theme.
    613613         *
    614614         * Hooked to the {@see 'upgrader_pre_install'} filter by Theme_Upgrader::upgrade() and
     
    628628                $theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
    629629
    630                 // Only run if current theme
     630                // Only run if active theme
    631631                if ( get_stylesheet() !== $theme ) {
    632632                        return $return;
     
    642642
    643643        /**
    644          * Turn off maintenance mode after upgrading the current theme.
     644         * Turn off maintenance mode after upgrading the active theme.
    645645         *
    646646         * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::upgrade()
     
    660660                $theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
    661661
    662                 // Only run if current theme.
     662                // Only run if active theme.
    663663                if ( get_stylesheet() !== $theme ) {
    664664                        return $return;
Note: See TracChangeset for help on using the changeset viewer.