Skip to content

Commit

Permalink
Coding Standards: Use a more appropriate variable name in `link_advan…
Browse files Browse the repository at this point in the history
…ced_meta_box()`.

Follow-up to [45667].

Props mkox, SergeyBiryukov.
Fixes #54856.

git-svn-id: https://develop.svn.wordpress.org/trunk@52620 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jan 23, 2022
1 parent a7a5bf1 commit 1283afc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-admin/includes/meta-boxes.php
Expand Up @@ -1364,12 +1364,12 @@ function link_advanced_meta_box( $link ) {
<th scope="row"><label for="link_rating"><?php _e( 'Rating' ); ?></label></th>
<td><select name="link_rating" id="link_rating" size="1">
<?php
for ( $parsed_args = 0; $parsed_args <= 10; $parsed_args++ ) {
echo '<option value="' . $parsed_args . '"';
if ( isset( $link->link_rating ) && $link->link_rating == $parsed_args ) {
for ( $rating = 0; $rating <= 10; $rating++ ) {
echo '<option value="' . $rating . '"';
if ( isset( $link->link_rating ) && $link->link_rating == $rating ) {
echo ' selected="selected"';
}
echo( '>' . $parsed_args . '</option>' );
echo '>' . $rating . '</option>';
}
?>
</select>&nbsp;<?php _e( '(Leave at 0 for no rating.)' ); ?>
Expand Down

0 comments on commit 1283afc

Please sign in to comment.