Make WordPress Core

Changeset 59750


Ignore:
Timestamp:
02/01/2025 08:50:13 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in some legacy media functions.

Follow-up to [7062], [8653], [12188].

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

File:
1 edited

Legend:

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

    r59554 r59750  
    9494            $class = '';
    9595
    96             if ( $current == $callback ) {
     96            if ( $current === $callback ) {
    9797                $class = " class='current'";
    9898            }
     
    11731173        $name     = esc_attr( $name );
    11741174        $output[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" .
    1175             ( $checked == $name ? " checked='checked'" : '' ) .
     1175            ( $checked === $name ? " checked='checked'" : '' ) .
    11761176            " /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>";
    11771177    }
     
    12231223
    12241224        // If this size is the default but that's not available, don't select it.
    1225         if ( $size == $check ) {
     1225        if ( $size === $check ) {
    12261226            if ( $enabled ) {
    12271227                $checked = " checked='checked'";
Note: See TracChangeset for help on using the changeset viewer.