Make WordPress Core

Changeset 62065


Ignore:
Timestamp:
03/19/2026 01:13:27 PM (9 days ago)
Author:
audrasjb
Message:

Themes: Remove unused private method WP_Theme::_check_headers_property_has_correct_type().

Follow-up to [56835].

Props marian1, mukesh27.
Fixes #64584.

File:
1 edited

Legend:

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

    r61676 r62065  
    21642164        return strnatcasecmp( $a->name_translated, $b->name_translated );
    21652165    }
    2166 
    2167     private static function _check_headers_property_has_correct_type( $headers ) {
    2168         if ( ! is_array( $headers ) ) {
    2169             return false;
    2170         }
    2171         foreach ( $headers as $key => $value ) {
    2172             if ( ! is_string( $key ) || ! is_string( $value ) ) {
    2173                 return false;
    2174             }
    2175         }
    2176         return true;
    2177     }
    21782166}
Note: See TracChangeset for help on using the changeset viewer.