Skip to:
Content

BuddyPress.org

Changeset 13090


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

Location:
trunk/src/bp-settings
Files:
14 edited

Legend:

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

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: Capabilities action handler
     3 * Settings: Capabilities action handler.
    44 *
    55 * @package BuddyPress
     
    99
    1010/**
    11  * Handles the setting of user capabilities, spamming, hamming, role, etc...
     11 * Handles the setting of user capabilities, spamming, hamming, role, etc.
    1212 *
    1313 * @since 1.6.0
     
    5252    /* Spam **************************************************************/
    5353
    54     $is_spammer = !empty( $_POST['user-spammer'] ) ? true : false;
     54    $is_spammer = ! empty( $_POST['user-spammer'] ) ? true : false;
    5555
    5656    if ( bp_is_user_spammer( bp_displayed_user_id() ) != $is_spammer ) {
  • trunk/src/bp-settings/actions/data.php

    r12272 r13090  
    11<?php
    22/**
    3  * Settings: Data management action handler
     3 * Settings: Data management action handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/actions/delete-account.php

    r12594 r13090  
    11<?php
    22/**
    3  * Settings: Account deletion action handler
     3 * Settings: Account deletion action handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/actions/general.php

    r13043 r13090  
    11<?php
    22/**
    3  * Settings: Email address and password action handler
     3 * Settings: Email address and password action handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/actions/notifications.php

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: Email notifications action handler
     3 * Settings: Email notifications action handler.
    44 *
    55 * @package BuddyPress
     
    1212 *
    1313 * @since 1.6.0
     14 *
     15 * @return bool|void
    1416 */
    1517function bp_settings_action_notifications() {
  • trunk/src/bp-settings/bp-settings-filters.php

    r12416 r13090  
    11<?php
    2 
    32/**
    43 * Filters related to the Settings component.
    54 *
     5 * @package BuddyPress
     6 * @subpackage SettingsFilters
    67 * @since 4.0.0
    78 */
     
    1617 * @since 5.0.0 adds an `exporter_bp_friendly_name` param to exporters.
    1718 *
    18  * @param array $exporters  An array of personal data exporters.
     19 * @param array $exporters An array of personal data exporters.
    1920 * @return array An array of personal data exporters.
    2021 */
  • 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
  • trunk/src/bp-settings/bp-settings-template.php

    r12603 r13090  
    1515 *
    1616 * @since 1.5.0
    17  *
    1817 */
    1918function bp_settings_slug() {
     
    4342 *
    4443 * @since 1.5.0
    45  *
    4644 */
    4745function bp_settings_root_slug() {
  • trunk/src/bp-settings/classes/class-bp-settings-component.php

    r12994 r13090  
    2929            buddypress()->plugin_dir,
    3030            array(
    31                 'adminbar_myaccount_order' => 100
     31                'adminbar_myaccount_order' => 100,
    3232            )
    3333        );
     
    299299     * @since 9.0.0
    300300     *
    301      * @param array $blocks Optional. See BP_Component::blocks_init() for
    302      *                      description.
     301     * @param array $blocks Optional. See BP_Component::blocks_init() for the description.
    303302     */
    304303    public function blocks_init( $blocks = array() ) {
  • trunk/src/bp-settings/screens/capabilities.php

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: User's "Settings > Capabilities" screen handler
     3 * Settings: User's "Settings > Capabilities" screen handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/screens/data.php

    r12272 r13090  
    11<?php
    22/**
    3  * Settings: User's "Settings > Export Data" screen handler
     3 * Settings: User's "Settings > Export Data" screen handler.
    44 *
    55 * @package BuddyPress
     
    1414 */
    1515function bp_settings_screen_data() {
     16
    1617    if ( bp_action_variables() ) {
    1718        bp_do_404();
  • trunk/src/bp-settings/screens/delete-account.php

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: User's "Settings > Delete Account" screen handler
     3 * Settings: User's "Settings > Delete Account" screen handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/screens/general.php

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: User's "Settings" screen handler
     3 * Settings: User's "Settings" screen handler.
    44 *
    55 * @package BuddyPress
  • trunk/src/bp-settings/screens/notifications.php

    r11926 r13090  
    11<?php
    22/**
    3  * Settings: User's "Settings > Email" screen handler
     3 * Settings: User's "Settings > Email" screen handler.
    44 *
    55 * @package BuddyPress
Note: See TracChangeset for help on using the changeset viewer.