In template stack functions, wrap `function_exists()` checks with `is_array()` check. Allows class methods to be used as template stack locations. See: https://buddypress.trac.wordpress.org/ticket/5671

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5355 9866e705-20ec-0310-96e7-cbb4277adcfb
Replace `function_exists()` checks with `is_callable()` in template stack functions. Props boonebgorges. See: http://buddypress.trac.wordpress.org/ticket/5671

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5356 9866e705-20ec-0310-96e7-cbb4277adcfb
Indent with tabs in `package.json`

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5357 9866e705-20ec-0310-96e7-cbb4277adcfb
Alphabetize grunt packages and update keywords in `package.json`.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5358 9866e705-20ec-0310-96e7-cbb4277adcfb
Re-alphabetize grunt packages and update keywords in `package.json`.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5359 9866e705-20ec-0310-96e7-cbb4277adcfb
Revert indentation change in r5357. Props netweb. See: http://yaml.org/spec/1.2/spec.html#id2777534

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5360 9866e705-20ec-0310-96e7-cbb4277adcfb
Missed a spot.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5361 9866e705-20ec-0310-96e7-cbb4277adcfb
Add .editorconfig file, see http://editorconfig.org/.
"EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs."
Props netweb. Fixes #2598

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5362 9866e705-20ec-0310-96e7-cbb4277adcfb
Whitespace cleanup to `Gruntfile.js`.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5363 9866e705-20ec-0310-96e7-cbb4277adcfb
Remove text-zoom override from default responsive theme-compat styling (themes should have this covered.)



git-svn-id: https://bbpress.svn.wordpress.org/trunk@5364 9866e705-20ec-0310-96e7-cbb4277adcfb
Introduce `bbp_sanitize_slug()` function for sanitizing permalink slugs, and use it as the callback for any slug settings. Props mazengamal. See #2496 (trunk).

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5365 9866e705-20ec-0310-96e7-cbb4277adcfb
Update to tools:

* Update topic & reply count repair tools to only delete the appropriate meta keys from the appropriate parents.
* Include new reply hierarchy repair tool, to fix a possibly poisoned reply hierarchy.

Props netweb. See #2586 (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5368 9866e705-20ec-0310-96e7-cbb4277adcfb
Introduce `bbp_sanitize_displayed_user_field()` function to handle the sanitizing of displayed user data, and add it to the `bbp_get_displayed_user_field` filter. Props mazengamal. See #2610 (trunk).

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5369 9866e705-20ec-0310-96e7-cbb4277adcfb
Indentation clean-up and assignment clarifycation in `bbp_get_reply_to()`. See #2588.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5371 9866e705-20ec-0310-96e7-cbb4277adcfb
Remove extraneous validation in `bbp_get_form_reply_to()`. Fixes bug causing `_bbp_reply_to` field to be incorrectly set as the current `$reply_id` when editing a reply with no reply_to, which can lead to hierarchy issues. See #2586, #2588. (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5372 9866e705-20ec-0310-96e7-cbb4277adcfb
Update reply position repair tool to delete invalid `_bbp_reply_to` fields, and tweak name and description. Props netweb. See #2588. (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5375 9866e705-20ec-0310-96e7-cbb4277adcfb
Introduce `bbp_validate_reply_to()` function, used to:

* Validate a parent reply is actually a reply post_type.
* A reply is not accidentally assigning itself as its own parent.
* An integer is returned.

Fixes hiesenbug where calls to `bbp_get_reply_id()` were unexpectedly and occasionally returning the current reply ID rather than 0.

See #2588. (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5378 9866e705-20ec-0310-96e7-cbb4277adcfb
Bump stable tag and add 2.5.4 section to `readme.txt` (trunk)

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5379 9866e705-20ec-0310-96e7-cbb4277adcfb
Fix .editorconfig file, file should be a file not a diff.
Props thebrandonallen. Fixes #2612

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5383 9866e705-20ec-0310-96e7-cbb4277adcfb
Update `grunt-wp-i18n` to 0.4.5. Fixes calls to `date()` for local installations without timezone identifiers.

git-svn-id: https://bbpress.svn.wordpress.org/trunk@5384 9866e705-20ec-0310-96e7-cbb4277adcfb