Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2021 08:31:02 AM (4 years ago)
Author:
imath
Message:

Member Invites: add missing /* translators: */ inline comments

This commit also:

  • adds some tiny improvements to get along with WP Coding Standards,
  • removes a forgotten PHP notice using the right $args variable instead of the undefined $all_args one in bp_members_invitations_get_registration_welcome_message()
  • removes an extra <hr class="wp-header-end"> into the Manage Invitations Admin screen that was causing admin notices to appear twice.
  • Uses the wpautop() function instead of an inexisting wpautop filter into bp_members_invitations_add_legacy_welcome_message() and bp_members_invitations_add_legacy_registration_disabled_message().

Huge Props dcavins for this awesome new feature!

See #8139

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r12922 r12930  
    20212021 *
    20222022 * @since 8.0.0
    2023  *
    2024  * @return string $message The message text.
    20252023 */
    20262024function bp_members_invitations_add_legacy_welcome_message() {
    20272025    $message = bp_members_invitations_get_registration_welcome_message();
     2026
    20282027    if ( $message ) {
    2029         echo apply_filters( 'wpautop', $message );
     2028        // Surround the message with `<p>` tags.
     2029        echo wpautop( $message );
    20302030    }
    20312031}
     
    20382038 *
    20392039 * @since 8.0.0
    2040  *
    2041  * @return string $message The message text.
    20422040 */
    20432041function bp_members_invitations_add_legacy_registration_disabled_message() {
    20442042    $message = bp_members_invitations_get_modified_registration_disabled_message();
     2043
    20452044    if ( $message ) {
    2046         echo apply_filters( 'wpautop', $message );
     2045        // Surround the message with `<p>` tags.
     2046        echo wpautop( $message );
    20472047    }
    20482048}
Note: See TracChangeset for help on using the changeset viewer.