Ticket #8265: 8265.01.patch
File 8265.01.patch, 597 bytes (added by , 5 years ago) |
---|
-
src/bp-settings/bp-settings-functions.php
248 248 ) ); 249 249 250 250 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 ); 252 254 } else { 253 255 return false; 254 256 }