Ticket #8223: 8223.patch
File 8223.patch, 3.1 KB (added by , 5 years ago) |
---|
-
src/bp-core/bp-core-dependency.php
7 7 * own in a safe and reliable way. 8 8 * 9 9 * We do this in BuddyPress by mirroring existing WordPress hooks in many places 10 * allowing depend ant plugins to hook into the BuddyPress specific ones, thus10 * allowing dependent plugins to hook into the BuddyPress specific ones, thus 11 11 * guaranteeing proper code execution only when BuddyPress is active. 12 12 * 13 13 * The following functions are wrappers for hooks, allowing them to be -
src/bp-core/bp-core-filters.php
434 434 if ( ! bp_has_custom_signup_page() ) 435 435 return $welcome_email; 436 436 437 // [User Set] Replaces $password in welcome email; Represents value set by user 437 // [User Set] Replaces $password in welcome email; Represents value set by user. 438 438 return str_replace( $password, __( '[User Set]', 'buddypress' ), $welcome_email ); 439 439 } 440 440 add_filter( 'update_welcome_email', 'bp_core_filter_blog_welcome_email', 10, 4 ); … … 811 811 * 812 812 * @since 2.3.3 813 813 * 814 * @param array $item_types An associative array structured for the customizer.814 * @param array $item_types An associative array structured for the customizer. 815 815 * @return array $item_types An associative array structured for the customizer. 816 816 */ 817 817 function bp_customizer_nav_menus_set_item_types( $item_types = array() ) { -
src/bp-core/bp-core-functions.php
502 502 function bp_core_get_directory_page_ids( $status = 'active' ) { 503 503 $page_ids = bp_get_option( 'bp-pages', array() ); 504 504 505 // Loop through pages 505 // Loop through pages. 506 506 foreach ( $page_ids as $component_name => $page_id ) { 507 507 508 508 // Ensure that empty indexes are unset. Should only matter in edge cases. … … 1565 1565 1566 1566 // Setup a default string if none was passed. 1567 1567 $string = empty( $string ) 1568 ? '%s' // Get text placeholder.1568 ? '%s' // Get text placeholder. 1569 1569 : $string; 1570 1570 1571 1571 // Use the string if a last activity date was passed. … … 2731 2731 * @since 2.1.0 2732 2732 * 2733 2733 * @param string $value Custom class to use. Default: none. 2734 * @param array $args Array of arguments for sugg gestions.2734 * @param array $args Array of arguments for suggestions. 2735 2735 */ 2736 2736 $class = apply_filters( 'bp_suggestions_services', '', $args ); 2737 2737 } … … 3162 3162 * @param array $args { 3163 3163 * Optional. Array of extra parameters. 3164 3164 * 3165 * @type array $tokens Optional. Assoc ative arrays of string replacements for the email.3165 * @type array $tokens Optional. Associative arrays of string replacements for the email. 3166 3166 * } 3167 3167 */ 3168 3168 do_action_ref_array( 'bp_send_email', array( &$email, $email_type, $to, $args ) );