Changeset 45667 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 07/25/2019 12:47:53 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r45599 r45667 493 493 $args = $box['args']; 494 494 } 495 $ r= wp_parse_args( $args, $defaults );496 $tax_name = esc_attr( $ r['taxonomy'] );497 $taxonomy = get_taxonomy( $ r['taxonomy'] );495 $parsed_args = wp_parse_args( $args, $defaults ); 496 $tax_name = esc_attr( $parsed_args['taxonomy'] ); 497 $taxonomy = get_taxonomy( $parsed_args['taxonomy'] ); 498 498 $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); 499 499 $comma = _x( ',', 'tag delimiter' ); … … 556 556 $args = $box['args']; 557 557 } 558 $ r= wp_parse_args( $args, $defaults );559 $tax_name = esc_attr( $r['taxonomy'] );560 $taxonomy = get_taxonomy( $r['taxonomy'] );558 $parsed_args = wp_parse_args( $args, $defaults ); 559 $tax_name = esc_attr( $parsed_args['taxonomy'] ); 560 $taxonomy = get_taxonomy( $parsed_args['taxonomy'] ); 561 561 ?> 562 562 <div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv"> … … 1311 1311 <td><select name="link_rating" id="link_rating" size="1"> 1312 1312 <?php 1313 for ( $ r = 0; $r <= 10; $r++ ) {1314 echo '<option value="' . $ r. '"';1315 if ( isset( $link->link_rating ) && $link->link_rating == $ r) {1313 for ( $parsed_args = 0; $parsed_args <= 10; $parsed_args++ ) { 1314 echo '<option value="' . $parsed_args . '"'; 1315 if ( isset( $link->link_rating ) && $link->link_rating == $parsed_args ) { 1316 1316 echo ' selected="selected"'; 1317 1317 } 1318 echo( '>' . $ r. '</option>' );1318 echo( '>' . $parsed_args . '</option>' ); 1319 1319 } 1320 1320 ?>
Note: See TracChangeset
for help on using the changeset viewer.