Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2024 01:13:42 AM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part XII: miscellaneous fixes for some of the files of the core component.

Follow-up to [13904]

See #9174 and #9173

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-rest-api.php

    r13903 r13968  
    2525 * Should we use the REST Endpoints of built BuddyPress?
    2626 *
    27  * If the BP REST plugin is active, it overrides BuddyPress REST enpoints.
     27 * If the BP REST plugin is active, it overrides BuddyPress REST endpoints.
    2828 * This allows us to carry on maintaining all the BP REST API endpoints from
    2929 * the BP REST plugin on GitHub.
    … …  
    5555         * @since 5.0.0
    5656         *
    57          * @param boolean $value True if the BP REST API is available. False otherwise.
     57         * @param bool $api_is_available True if the BP REST API is available. False otherwise.
    5858         */
    5959        return apply_filters( 'bp_rest_api_is_available', bp_rest_in_buddypress() ) || bp_rest_is_plugin_active();
    … …  
    204204function bp_rest_sanitize_member_types( $value ) {
    205205        if ( empty( $value ) ) {
    206                 return $value;
     206                return null;
    207207        }
    208208
Note: See TracChangeset for help on using the changeset viewer.