Make WordPress Core

Changeset 60970


Ignore:
Timestamp:
10/18/2025 01:24:58 PM (14 hours ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use more meaningful variable names in Custom Image Header.

Per the Naming Conventions:

Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [27497], [27849].

Props costdev, mukesh27.
See #63168.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r60351 r60970  
    15481548        $already_has_default = false;
    15491549
    1550         foreach ( $this->default_headers as $k => $h ) {
    1551             if ( $h['url'] === $default ) {
     1550        foreach ( $this->default_headers as $k => $header ) {
     1551            if ( $header['url'] === $default ) {
    15521552                $already_has_default = true;
    15531553                break;
Note: See TracChangeset for help on using the changeset viewer.