Changeset 13892 for trunk/src/bp-core/classes/class-bp-email-recipient.php
- Timestamp:
- 06/02/2024 01:16:13 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-email-recipient.php
r13372 r13892 1 1 <?php 2 2 /** 3 * Core component classes. 3 * BuddyPress Email Recipient class. 4 * 5 * Represents a recipient that an email will be sent to. 4 6 * 5 7 * @package BuddyPress … … 7 9 */ 8 10 9 // Exit if accessed directly 11 // Exit if accessed directly. 10 12 defined( 'ABSPATH' ) || exit; 11 13 12 14 /** 13 * Represents a recipient that an email will be sent to.15 * BP_Email_Recipient class. 14 16 * 15 17 * @since 2.5.0 … … 22 24 * @since 2.5.0 23 25 * 24 * @var WP_User 26 * @var WP_User|null 25 27 */ 26 28 protected $user_object = null; … … 45 47 $this->user_object = $email_or_user; 46 48 47 // Query for WP user by user ID.49 // Query for WP user by user ID. 48 50 } elseif ( is_int( $email_or_user ) ) { 49 51 $this->user_object = get_user_by( 'id', $email_or_user ); … … 55 57 } 56 58 57 // Array or miscellaneous string.59 // Array or miscellaneous string. 58 60 } else { 59 61 if ( ! is_array( $email_or_user ) ) { … … 82 84 // We have a user object; so set address and name from DB. 83 85 if ( $this->user_object ) { 84 // This is escaped with esc_html in bp_core_get_user_displayname() 86 // This is escaped with esc_html in bp_core_get_user_displayname(). 85 87 $wp_name = wp_specialchars_decode( bp_core_get_user_displayname( $this->user_object->ID ), ENT_QUOTES ); 86 88
Note: See TracChangeset
for help on using the changeset viewer.