Make WordPress Core

Changeset 52620


Ignore:
Timestamp:
01/23/2022 09:01:17 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use a more appropriate variable name in link_advanced_meta_box().

Follow-up to [45667].

Props mkox, SergeyBiryukov.
Fixes #54856.

File:
1 edited

Legend:

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

    r52610 r52620  
    13651365        <td><select name="link_rating" id="link_rating" size="1">
    13661366        <?php
    1367         for ( $parsed_args = 0; $parsed_args <= 10; $parsed_args++ ) {
    1368             echo '<option value="' . $parsed_args . '"';
    1369             if ( isset( $link->link_rating ) && $link->link_rating == $parsed_args ) {
     1367        for ( $rating = 0; $rating <= 10; $rating++ ) {
     1368            echo '<option value="' . $rating . '"';
     1369            if ( isset( $link->link_rating ) && $link->link_rating == $rating ) {
    13701370                echo ' selected="selected"';
    13711371            }
    1372             echo( '>' . $parsed_args . '</option>' );
     1372            echo '>' . $rating . '</option>';
    13731373        }
    13741374        ?>
Note: See TracChangeset for help on using the changeset viewer.