Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/23/2021 01:13:45 AM (3 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Settings files.

See #8553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-functions.php

    r12745 r13090  
    222222 * @since 4.0.0
    223223 *
    224  * @param int WP user ID.
    225  * @return WP_User_Request|false WP_User_Request object on success, boolean false 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.
    226226 */
    227227function bp_settings_get_personal_data_request( $user_id = 0 ) {
     
    306306function bp_settings_personal_data_export_exists( WP_User_Request $request ) {
    307307    $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 );
    313309}
    314310
Note: See TracChangeset for help on using the changeset viewer.