Make WordPress Core

Changeset 57111

Timestamp:
11/15/2023 09:31:56 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in the ms_user_list_site_class filter description.

Follow-up to [44977].

Props nithins53, shailu25, sabernhardt.
Fixes #59907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r56665 r57111  
    384384            $path         = ( '/' === $site->path ) ? '' : $site->path;
    385385            $site_classes = array( 'site-' . $site->site_id );
     386
    386387            /**
    387              * Filters the span class for a site listing on the mulisite user list table.
     388             * Filters the span class for a site listing on the mulisite user list table.
    388389             *
    389390             * @since 5.2.0
    390391             *
    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.
    392394             * @param int      $site_id      Site ID.
    393395             * @param int      $network_id   Network ID.
     
    395397             */
    396398            $site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user );
     399
    397400            if ( is_array( $site_classes ) && ! empty( $site_classes ) ) {
    398401                $site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) );
     
    401404                echo '<span>';
    402405            }
     406
    403407            echo '<a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $site->userblog_id ) ) . '">' . str_replace( '.' . get_network()->domain, '', $site->domain . $path ) . '</a>';
    404408            echo ' <small class="row-actions">';
     409
    405410            $actions         = array();
    406411            $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.