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-nouveau/buddypress-functions.php

    r12921 r12930  
    696696            $messages['registration-disabled']['message'] = $disallowed_message;
    697697        }
     698
    698699        // Add information about invitations to the welcome block.
    699700        $welcome_message = bp_members_invitations_get_registration_welcome_message();
    700701        if ( $welcome_message ) {
    701             $messages['request-details']['message'] = $welcome_message . $messages['request-details']['message'];
    702         }
     702            $messages['request-details']['message'] = $welcome_message . ' ' . $messages['request-details']['message'];
     703        }
     704
    703705        return $messages;
    704706    }
Note: See TracChangeset for help on using the changeset viewer.