~vcs-imports/buddypress/trunk

Viewing all changes in revision 9494.

  • Committer: imath
  • Date: 2019-12-06 18:44:36 UTC
  • Revision ID: svn-v4:cdf35c40-ae34-48e0-9cc9-0c9da1808c22:trunk:12503
Make sure users can register when the xProfile component is not active

In version 5.0.0, we've introduced an improvement to use the display name as the salutation in signup emails (see [12349]). To do so we rely on an xProfile's component function. When this component is not active, the function is also not available causing a fatal error and preventing the activation email to be sent. To fix this issue we are now checking the component is active before using the function to return the display name.

See #8174 (Trunk)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: