Changeset 13090 for trunk/src/bp-settings/bp-settings-functions.php
- Timestamp:
- 08/23/2021 01:13:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/bp-settings-functions.php
r12745 r13090 222 222 * @since 4.0.0 223 223 * 224 * @param int WP user ID.225 * @return WP_User_Request| false WP_User_Request object on success, booleanfalse on failure.224 * @param int $user_id WP user ID. 225 * @return WP_User_Request|bool WP_User_Request object on success, bool false on failure. 226 226 */ 227 227 function bp_settings_get_personal_data_request( $user_id = 0 ) { … … 306 306 function bp_settings_personal_data_export_exists( WP_User_Request $request ) { 307 307 $file = get_post_meta( $request->ID, '_export_file_path', true ); 308 if ( file_exists( $file ) ) { 309 return true; 310 } else { 311 return false; 312 } 308 return file_exists( $file ); 313 309 } 314 310
Note: See TracChangeset
for help on using the changeset viewer.