Changeset 45667 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 07/25/2019 12:47:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r45583 r45667 1090 1090 1091 1091 // Parse arguments 1092 $ r= wp_parse_args(1092 $parsed_args = wp_parse_args( 1093 1093 $args, 1094 1094 array( … … 1103 1103 1104 1104 // Loop through tabs 1105 foreach ( $ r['links'] as $link_id => $link ) {1105 foreach ( $parsed_args['links'] as $link_id => $link ) { 1106 1106 1107 1107 // Skip link if user can't access 1108 if ( ! current_user_can( $link['cap'], $ r['blog_id'] ) ) {1108 if ( ! current_user_can( $link['cap'], $parsed_args['blog_id'] ) ) { 1109 1109 continue; 1110 1110 } … … 1117 1117 1118 1118 // Selected is set by the parent OR assumed by the $pagenow global 1119 if ( $ r['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) {1119 if ( $parsed_args['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) { 1120 1120 $classes[] = 'nav-tab-active'; 1121 1121 $aria_current = ' aria-current="page"'; … … 1126 1126 1127 1127 // Get the URL for this link 1128 $url = add_query_arg( array( 'id' => $ r['blog_id'] ), network_admin_url( $link['url'] ) );1128 $url = add_query_arg( array( 'id' => $parsed_args['blog_id'] ), network_admin_url( $link['url'] ) ); 1129 1129 1130 1130 // Add link to nav links
Note: See TracChangeset
for help on using the changeset viewer.