Skip to:
Content

BuddyPress.org

Ticket #8223: 8223.patch

File 8223.patch, 3.1 KB (added by passoniate, 5 years ago)

Patch

  • src/bp-core/bp-core-dependency.php

     
    77 * own in a safe and reliable way.
    88 *
    99 * We do this in BuddyPress by mirroring existing WordPress hooks in many places
    10  * allowing dependant plugins to hook into the BuddyPress specific ones, thus
     10 * allowing dependent plugins to hook into the BuddyPress specific ones, thus
    1111 * guaranteeing proper code execution only when BuddyPress is active.
    1212 *
    1313 * The following functions are wrappers for hooks, allowing them to be
  • src/bp-core/bp-core-filters.php

     
    434434        if ( ! bp_has_custom_signup_page() )
    435435                return $welcome_email;
    436436
    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.
    438438        return str_replace( $password, __( '[User Set]', 'buddypress' ), $welcome_email );
    439439}
    440440add_filter( 'update_welcome_email', 'bp_core_filter_blog_welcome_email', 10, 4 );
     
    811811 *
    812812 * @since 2.3.3
    813813 *
    814  * @param array $item_types An associative array structured for the customizer.
     814 * @param  array $item_types An associative array structured for the customizer.
    815815 * @return array $item_types An associative array structured for the customizer.
    816816 */
    817817function bp_customizer_nav_menus_set_item_types( $item_types = array() ) {
  • src/bp-core/bp-core-functions.php

     
    502502function bp_core_get_directory_page_ids( $status = 'active' ) {
    503503        $page_ids = bp_get_option( 'bp-pages', array() );
    504504
    505         // Loop through pages
     505        // Loop through pages.
    506506        foreach ( $page_ids as $component_name => $page_id ) {
    507507
    508508                // Ensure that empty indexes are unset. Should only matter in edge cases.
     
    15651565
    15661566        // Setup a default string if none was passed.
    15671567        $string = empty( $string )
    1568                 ? '%s'     // Gettext placeholder.
     1568                ? '%s'     // Get text placeholder.
    15691569                : $string;
    15701570
    15711571        // Use the string if a last activity date was passed.
     
    27312731                 * @since 2.1.0
    27322732                 *
    27332733                 * @param string $value Custom class to use. Default: none.
    2734                  * @param array  $args  Array of arguments for sugggestions.
     2734                 * @param array  $args  Array of arguments for suggestions.
    27352735                 */
    27362736                $class = apply_filters( 'bp_suggestions_services', '', $args );
    27372737        }
     
    31623162     * @param array                    $args {
    31633163         *     Optional. Array of extra parameters.
    31643164         *
    3165          *     @type array $tokens Optional. Assocative arrays of string replacements for the email.
     3165         *     @type array $tokens Optional. Associative arrays of string replacements for the email.
    31663166         * }
    31673167         */
    31683168        do_action_ref_array( 'bp_send_email', array( &$email, $email_type, $to, $args ) );