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

Follow-up to [45667].

Props mkox, SergeyBiryukov.
Fixes #54856.
Built from https://develop.svn.wordpress.org/trunk@52620


git-svn-id: http://core.svn.wordpress.org/trunk@52208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-01-23 09:03:05 +00:00
parent d332f43f60
commit 997f8b9921
2 changed files with 5 additions and 5 deletions

View File

@ -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.)' ); ?>

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52618';
$wp_version = '6.0-alpha-52620';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.