mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity.
Props freewebmentor. Fixes #45059. git-svn-id: https://develop.svn.wordpress.org/trunk@45667 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -492,9 +492,9 @@ function post_tags_meta_box( $post, $box ) {
|
||||
} else {
|
||||
$args = $box['args'];
|
||||
}
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
$tax_name = esc_attr( $r['taxonomy'] );
|
||||
$taxonomy = get_taxonomy( $r['taxonomy'] );
|
||||
$parsed_args = wp_parse_args( $args, $defaults );
|
||||
$tax_name = esc_attr( $parsed_args['taxonomy'] );
|
||||
$taxonomy = get_taxonomy( $parsed_args['taxonomy'] );
|
||||
$user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms );
|
||||
$comma = _x( ',', 'tag delimiter' );
|
||||
$terms_to_edit = get_terms_to_edit( $post->ID, $tax_name );
|
||||
@@ -555,9 +555,9 @@ function post_categories_meta_box( $post, $box ) {
|
||||
} else {
|
||||
$args = $box['args'];
|
||||
}
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
$tax_name = esc_attr( $r['taxonomy'] );
|
||||
$taxonomy = get_taxonomy( $r['taxonomy'] );
|
||||
$parsed_args = wp_parse_args( $args, $defaults );
|
||||
$tax_name = esc_attr( $parsed_args['taxonomy'] );
|
||||
$taxonomy = get_taxonomy( $parsed_args['taxonomy'] );
|
||||
?>
|
||||
<div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv">
|
||||
<ul id="<?php echo $tax_name; ?>-tabs" class="category-tabs">
|
||||
@@ -1310,12 +1310,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 ( $r = 0; $r <= 10; $r++ ) {
|
||||
echo '<option value="' . $r . '"';
|
||||
if ( isset( $link->link_rating ) && $link->link_rating == $r ) {
|
||||
for ( $parsed_args = 0; $parsed_args <= 10; $parsed_args++ ) {
|
||||
echo '<option value="' . $parsed_args . '"';
|
||||
if ( isset( $link->link_rating ) && $link->link_rating == $parsed_args ) {
|
||||
echo ' selected="selected"';
|
||||
}
|
||||
echo( '>' . $r . '</option>' );
|
||||
echo( '>' . $parsed_args . '</option>' );
|
||||
}
|
||||
?>
|
||||
</select> <?php _e( '(Leave at 0 for no rating.)' ); ?>
|
||||
|
||||
Reference in New Issue
Block a user