Better detection for false positives in meta SQL filters.

Our wrappers for WP's _metadata() functions require some filtering of the SQL
string (to change a column name and, in the case of xprofile, to add an
'object_type' clause). Our str_replace() logic is too generous, creating the
possibility of matching quoted text, as when the meta value contains the string
'WHERE'.

This changeset modifies the filters so that quoted content is swapped out with
placeholders before we run our search-and-replace.

See #5919.
Props tometzky for feedback.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9073 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use bp_blog_class() to output row classes in blogs-loop.php.

Props lenasterg.
Fixes ##5927.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9074 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Hooks for xprofile Add Field screen.

Until this screen uses the add_meta_box() API, these hooks will allow plugin
devs to add custom items to the xprofile field creation process.

Props svenl77.
Fixes #5917.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9075 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Make "no members found" message on group members page more general.

'No members were found.' applies both when the group has no members and when
a search within group members returns no members.

Fixes #5935.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9076 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bump version in bp-loader.php stub to 2.2-alpha.

Props ev3rywh3re.
Fixes #5937.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9077 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add hook documentation to bp-activity-admin.php.

Props tw2113.
See #5938.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9078 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Hook documentation for bp-activity-actions.php.

Props tw2113, espellcaste.
Fixes #5936.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9079 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: specify IRC server/channel via environment variable configured on travis-ci.org.

This is to prevent our IRC dev channel from being notified when other people run BP's unit tests with travis-ci, via their own Github forks.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9080 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: second attempt at integrating a travis-ci.org system env var into our travis build configuration.

See r9080 for previous attempt.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9081 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix group meta query SQL manipulation.

The wildcard operators were acting too greedily, preventing some JOIN clauses
from being recognized and resulting in invalid SQL syntax. This problem had
previously been masked by ideosyncracies of WP's WP_Meta_Query SQL syntax,
which changed in [WP29887].

This change should be considered a band-aid fix for what is already a band-aid
fix. The proper resolution for this issue is to migrate away from the comma
syntax for JOINs used in BP_Groups_Group. See #5874, #5451.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9082 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
travis-ci: specify IRC server/channel for notifications via encrypted key instead of server env var.

travis-ci.org support has told us that notifications are not sent from the build VM which runs our test script (which is where the env variables are set), and are instead from a seperate component which doesn't take the env vars into account. This is why the previous two attempts on r9080 and r9081 did not work.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9083 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Update XProfile admin area title CSS and JS to bring it up-to-speed with WordPress 4.0 expectations.

* Remove placeholder attributes on titles and rely on accompanying labels
* Show/hide title labels the way WordPress posts currently do
* Add 20px bottom margin to title wrappers to separate it from descriptions
* Tweak admin area form markup slightly to accommodate these improvements

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9084 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove unnecessary semi-colon introduced in r9084.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9085 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Hook documentation for bp-activity-akismet.php and bp-activity-cssjs.php.

Props tw2113.
See #5938.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9086 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Pass `$pag_sql` variable to 'bp_activity_get_user_join_filter'.

There are two instances of this filter, and the first one had this `$pag_sql`
variable passed to it, while it was missing in the second case (where there is
no pagination). For greater consistency in documentation and plugin
development, we match the format of the variables passed to each instance of
the filter.

See #5938.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9087 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add support for Composer.

Fixes #5928

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9088 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Change 'Delete Message' to 'Delete Conversation' on message delete title button.

This makes it clearer what the button actually does.

Props SGr33n, joshshashaty.
Fixes #5908.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9089 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Fix typo in Gruntfile.js.

Props whyisjake.
Fixes #5962.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9090 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove page template name check in `bp_is_current_component()` introduced in r3884, fixing potential collisions causing unexpected template output or redirections.

Props pro120. Fixes #5721.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9091 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove '.min' from asset when locating bp-legacy assets.

This ensures that the assets can be located when running from /src/ when the
minified files have not been built.

Props nofearinc.
Fixes #5963.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9092 cdf35c40-ae34-48e0-9cc9-0c9da1808c22