Make WordPress Core

Changeset 61640


Ignore:
Timestamp:
02/13/2026 08:53:48 PM (7 months ago)
Author:
westonruter
Message:

Code Quality: Remove unnecessary array check for value return in WP_Theme_JSON::get_property_value().

Developed in https://github.com/WordPress/wordpress-develop/pull/10928

Follow-up to https://github.com/WordPress/gutenberg/commit/ccd529d7a6af

Props soean, mukesh27, westonruter.
Fixes #64636.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r61632 r61640  
    25602560                }
    25612561
    2562                 if ( is_array( $value ) ) {
    2563                         return $value;
    2564                 }
    2565 
    25662562                return $value;
    25672563        }
Note: See TracChangeset for help on using the changeset viewer.