From 812b1e296c57c53c6a2bf23f2cbc62adf4c7cc23 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 15 Nov 2023 09:33:26 +0000 Subject: [PATCH] Docs: Fix typo in the `ms_user_list_site_class` filter description. Follow-up to [44977]. Props nithins53, shailu25, sabernhardt. Fixes #59907. Built from https://develop.svn.wordpress.org/trunk@57111 git-svn-id: http://core.svn.wordpress.org/trunk@56622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-ms-users-list-table.php | 9 +++++++-- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index ec12321dc4..d02d380536 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -383,25 +383,30 @@ class WP_MS_Users_List_Table extends WP_List_Table { $path = ( '/' === $site->path ) ? '' : $site->path; $site_classes = array( 'site-' . $site->site_id ); + /** - * Filters the span class for a site listing on the mulisite user list table. + * Filters the span class for a site listing on the multisite user list table. * * @since 5.2.0 * - * @param string[] $site_classes Array of class names used within the span tag. Default "site-#" with the site's network ID. + * @param string[] $site_classes Array of class names used within the span tag. + * Default "site-#" with the site's network ID. * @param int $site_id Site ID. * @param int $network_id Network ID. * @param WP_User $user WP_User object. */ $site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user ); + if ( is_array( $site_classes ) && ! empty( $site_classes ) ) { $site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) ); echo ''; } else { echo ''; } + echo '' . str_replace( '.' . get_network()->domain, '', $site->domain . $path ) . ''; echo ' '; + $actions = array(); $actions['edit'] = '' . __( 'Edit' ) . ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 589b5bba5b..6667e5aac8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57110'; +$wp_version = '6.5-alpha-57111'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.