Changeset 57111
- Timestamp:
- 11/15/2023 09:31:56 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r56665 r57111 384 384 $path = ( '/' === $site->path ) ? '' : $site->path; 385 385 $site_classes = array( 'site-' . $site->site_id ); 386 386 387 /** 387 * Filters the span class for a site listing on the mul isite user list table.388 * Filters the span class for a site listing on the multisite user list table. 388 389 * 389 390 * @since 5.2.0 390 391 * 391 * @param string[] $site_classes Array of class names used within the span tag. Default "site-#" with the site's network ID. 392 * @param string[] $site_classes Array of class names used within the span tag. 393 * Default "site-#" with the site's network ID. 392 394 * @param int $site_id Site ID. 393 395 * @param int $network_id Network ID. … … 395 397 */ 396 398 $site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user ); 399 397 400 if ( is_array( $site_classes ) && ! empty( $site_classes ) ) { 398 401 $site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) ); … … 401 404 echo '<span>'; 402 405 } 406 403 407 echo '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $site->userblog_id ) ) . '">' . str_replace( '.' . get_network()->domain, '', $site->domain . $path ) . '</a>'; 404 408 echo ' <small class="row-actions">'; 409 405 410 $actions = array(); 406 411 $actions['edit'] = '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $site->userblog_id ) ) . '">' . __( 'Edit' ) . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.