Skip to:
Content

BuddyPress.org

Ticket #8130: 8130.patch

File 8130.patch, 767 bytes (added by imath, 5 years ago)
  • src/bp-core/bp-core-rest-api.php

    diff --git src/bp-core/bp-core-rest-api.php src/bp-core/bp-core-rest-api.php
    index 46ac80b00..5a0548cb3 100644
    function bp_rest_validate_member_types( $value ) { 
    236236        foreach ( $types as $type ) {
    237237                if ( ! in_array( $type, $registered_types, true ) ) {
    238238                        return new WP_Error(
    239                                 'bp_rest_invalid_group_type',
     239                                'bp_rest_invalid_member_type',
    240240                                sprintf(
    241241                                        /* translators: %1$s and %2$s is replaced with the registered type(s) */
    242                                         __( 'The member type you provided, %$1s, is not one of %$2s.', 'buddypress' ),
     242                                        __( 'The member type you provided, %1$s, is not one of %2$s.', 'buddypress' ),
    243243                                        $type,
    244244                                        implode( ', ', $registered_types )
    245245                                )