Changeset 13090
- Timestamp:
- 08/23/2021 01:13:45 AM (3 years ago)
- Location:
- trunk/src/bp-settings
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/actions/capabilities.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: Capabilities action handler 3 * Settings: Capabilities action handler. 4 4 * 5 5 * @package BuddyPress … … 9 9 10 10 /** 11 * Handles the setting of user capabilities, spamming, hamming, role, etc. ..11 * Handles the setting of user capabilities, spamming, hamming, role, etc. 12 12 * 13 13 * @since 1.6.0 … … 52 52 /* Spam **************************************************************/ 53 53 54 $is_spammer = ! empty( $_POST['user-spammer'] ) ? true : false;54 $is_spammer = ! empty( $_POST['user-spammer'] ) ? true : false; 55 55 56 56 if ( bp_is_user_spammer( bp_displayed_user_id() ) != $is_spammer ) { -
trunk/src/bp-settings/actions/data.php
r12272 r13090 1 1 <?php 2 2 /** 3 * Settings: Data management action handler 3 * Settings: Data management action handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/actions/delete-account.php
r12594 r13090 1 1 <?php 2 2 /** 3 * Settings: Account deletion action handler 3 * Settings: Account deletion action handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/actions/general.php
r13043 r13090 1 1 <?php 2 2 /** 3 * Settings: Email address and password action handler 3 * Settings: Email address and password action handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/actions/notifications.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: Email notifications action handler 3 * Settings: Email notifications action handler. 4 4 * 5 5 * @package BuddyPress … … 12 12 * 13 13 * @since 1.6.0 14 * 15 * @return bool|void 14 16 */ 15 17 function bp_settings_action_notifications() { -
trunk/src/bp-settings/bp-settings-filters.php
r12416 r13090 1 1 <?php 2 3 2 /** 4 3 * Filters related to the Settings component. 5 4 * 5 * @package BuddyPress 6 * @subpackage SettingsFilters 6 7 * @since 4.0.0 7 8 */ … … 16 17 * @since 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. 17 18 * 18 * @param array $exporters 19 * @param array $exporters An array of personal data exporters. 19 20 * @return array An array of personal data exporters. 20 21 */ -
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 -
trunk/src/bp-settings/bp-settings-template.php
r12603 r13090 15 15 * 16 16 * @since 1.5.0 17 *18 17 */ 19 18 function bp_settings_slug() { … … 43 42 * 44 43 * @since 1.5.0 45 *46 44 */ 47 45 function bp_settings_root_slug() { -
trunk/src/bp-settings/classes/class-bp-settings-component.php
r12994 r13090 29 29 buddypress()->plugin_dir, 30 30 array( 31 'adminbar_myaccount_order' => 100 31 'adminbar_myaccount_order' => 100, 32 32 ) 33 33 ); … … 299 299 * @since 9.0.0 300 300 * 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. 303 302 */ 304 303 public function blocks_init( $blocks = array() ) { -
trunk/src/bp-settings/screens/capabilities.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: User's "Settings > Capabilities" screen handler 3 * Settings: User's "Settings > Capabilities" screen handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/screens/data.php
r12272 r13090 1 1 <?php 2 2 /** 3 * Settings: User's "Settings > Export Data" screen handler 3 * Settings: User's "Settings > Export Data" screen handler. 4 4 * 5 5 * @package BuddyPress … … 14 14 */ 15 15 function bp_settings_screen_data() { 16 16 17 if ( bp_action_variables() ) { 17 18 bp_do_404(); -
trunk/src/bp-settings/screens/delete-account.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: User's "Settings > Delete Account" screen handler 3 * Settings: User's "Settings > Delete Account" screen handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/screens/general.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: User's "Settings" screen handler 3 * Settings: User's "Settings" screen handler. 4 4 * 5 5 * @package BuddyPress -
trunk/src/bp-settings/screens/notifications.php
r11926 r13090 1 1 <?php 2 2 /** 3 * Settings: User's "Settings > Email" screen handler 3 * Settings: User's "Settings > Email" screen handler. 4 4 * 5 5 * @package BuddyPress
Note: See TracChangeset
for help on using the changeset viewer.