Make WordPress Core


Ignore:
Timestamp:
04/16/2023 10:46:17 AM (20 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where substr() is involved.

Follow-up to [3606], [10738], [33359], [55642], [55652].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r54953 r55653  
    13661366            reset( $plugin_slugs );
    13671367            foreach ( $plugin_slugs as $plugin_slug ) {
    1368                 if ( $slug == substr( $plugin_slug, 0, strlen( $slug ) ) ) {
     1368                if ( $slug === substr( $plugin_slug, 0, strlen( $slug ) ) ) {
    13691369                    unset( $items[$item_key] );
    13701370                    continue 2;
Note: See TracChangeset for help on using the changeset viewer.