Skip to:
Content

BuddyPress.org

Ticket #8265: 8265.01.patch

File 8265.01.patch, 597 bytes (added by r-a-y, 5 years ago)
  • src/bp-settings/bp-settings-functions.php

     
    248248        ) );
    249249
    250250        if ( ! empty( $query->post ) ) {
    251                 return wp_get_user_request_data( $query->post->ID );
     251                // WP 5.4 changed the user request function name to wp_get_user_request()
     252                $user_request = function_exists( 'wp_get_user_request' ) ? 'wp_get_user_request' : 'wp_get_user_request_data';
     253                return $user_request( $query->post->ID );
    252254        } else {
    253255                return false;
    254256        }