| [5118]
|
johnjamesjacoby
|
Replace user_trailingslashit() with trailingslashit() in bbp_get_search_results_url(). Fixes issues with search results pages missing a slash when the permalink structure does not include a trailing slash by default. Fixes #2441. (2.4.1)
|
| [5119]
|
johnjamesjacoby
|
Replace user_trailingslashit() with trailingslashit() in bbp_get_search_results_url(). Fixes issues with search results pages missing a slash when the permalink structure does not include a trailing slash by default. Fixes #2441. (2.5)
|
| [5349]
|
netweb
|
Replies now use the reply ID for the the post name/slug via r5117.
bbPress' importers should also reflect that change with the removal of 'Reply Title' (post_title), 'Reply Slug' (post_name) and `callback_reply_title` from all importers. Props netweb. Fixes #2585
|
| [7488]
|
johnjamesjacoby
|
Replies/Topics: Stop writes after failed move and split checks.
Prevent the front-end reply-move and topic-split handlers from changing content after validation errors have accumulated. Preserve the existing shared error handling while stopping move and conversion writes before they occur.
Add regression coverage for unauthorized participant actions, accumulated errors, and successful moderator moves and conversions.
In branches/2.6, for 2.6.16.
Props phanphanhailong.
|
| [7487]
|
johnjamesjacoby
|
Replies/Topics: Stop writes after failed move and split checks.
Prevent the front-end reply-move and topic-split handlers from changing content after validation errors have accumulated. Preserve the existing shared error handling while stopping move and conversion writes before they occur.
Add regression coverage for unauthorized participant actions, accumulated errors, and successful moderator moves and conversions.
In trunk, for 2.7.
Props phanphanhailong.
|
| [4522]
|
johnjamesjacoby
|
Replies:
* Add ability to move a reply into a new topic, or into an existing topic.
* Includes new template part, new extra page template, and functions for handling the data move and template output.
* Props jmdodd.
* Fixes #1900.
|
| [4062]
|
johnjamesjacoby
|
Replies:
* Add table prefix to _bbp_has_replies_where().
* See: #1885.
|
| [4163]
|
johnjamesjacoby
|
Replies:
* Do not force single topic query to use specific indexes if also doing a meta query.
* Fixes #1938 for 2.1 branch.
|
| [4162]
|
johnjamesjacoby
|
Replies:
* Do not force single topic query to use specific indexes if also doing a meta query.
* Fixes #1938 for 2.2 branch.
|
| [4063]
|
johnjamesjacoby
|
Replies:
* Missed a 'wp_posts' reference in _bbp_has_replies_where().
* See: #1885.
|
| [3999]
|
johnjamesjacoby
|
Replies:
* Update bbp_get_reply_position_raw() to protect against debug notices from a totally missing reply position.
|
| [4530]
|
johnjamesjacoby
|
Replies:
* When editing a reply, do not append "Reply To:"
* Hat-tip netweb.
* Fixes #2066 (2.2 branch)
|
| [4529]
|
johnjamesjacoby
|
Replies:
* When editing a reply, do not append "Reply To:"
* Hat-tip netweb.
* Fixes #2066 (trunk)
|
| [6245]
|
johnjamesjacoby
|
Replies: Add `@since` and link to ticket from r6244.
See #3039.
|
| [6388]
|
johnjamesjacoby
|
Replies: Add `role="button"` to reply-to links.
Also normalize surrounding "Reply" text escaping.
Fixes #3092. Props alexstine.
|
| [6546]
|
johnjamesjacoby
|
Replies: Add `single_row()` method to replies list table when editing a topic.
This lets us use `get_post_class()` on the table rows, so statuses like `pending` or `spam` can be properly in the list for users who have the capability to see them.
See #2587.
|
| [6363]
|
netweb
|
Replies: Allow `pending` replies to be edited on the front end.
This changeset in `bbp_get_reply_edit_url()` switches from detecting pretty permalinks using `bbp_use_pretty_urls()` to detect the query string for `?` instead, this is due to pending replies always have ugly permalinks.
Props SergeyBiryukov.
Fixes #3054.
|
| [7157]
|
johnjamesjacoby
|
Replies: Allow moderators to reply to pending topics.
This commit adds a check inside of `bbp_current_user_can_access_create_reply_form()` for the `edit_topic` capability, and if the user is capable will now allow them to access that form.
This will come in particularly handy for forum moderators who want to reply to topics before they are approved, or to provide a reason to the original poster why a topic will not be approved but without making it public.
In branches/2.6, for 2.6.6. See #3309.
Props dd32, man4toman.
|
| [7158]
|
johnjamesjacoby
|
Replies: Allow moderators to reply to pending topics.
This commit adds a check inside of `bbp_current_user_can_access_create_reply_form()` for the `edit_topic` capability, and if the user is capable will now allow them to access that form.
This will come in particularly handy for forum moderators who want to reply to topics before they are approved, or to provide a reason to the original poster why a topic will not be approved but without making it public.
In trunk, for 2.7. Fixes #3309.
Props dd32, man4toman.
|
| [7483]
|
johnjamesjacoby
|
Replies: Authorize the topic's forum.
Always derive the forum used for reply creation and capability checks from the submitted topic. Continue validating the form's forum ID, but do not allow it to replace the topic's canonical forum.
Add regression coverage for participants and anonymous posters targeting private, hidden, and inherited restricted forums.
In trunk, for 2.7.
Props vvh1te3zz.
|
| [7484]
|
johnjamesjacoby
|
Replies: Authorize the topic's forum.
Backport the reply forum authorization fix from trunk. Always derive the forum used for reply creation and capability checks from the submitted topic, and call `read_forum` for every forum so inherited restrictions are enforced.
Add regression coverage for normal replies and participant attempts to target hidden and inherited restricted forums.
Merges r7483 to 2.6.
In branches/2.6, for 2.6.16.
Props vvh1te3zz.
|
| [7808]
|
johnjamesjacoby
|
Replies: Backport ancestry and position fixes.
Stop reply ancestry before appending an invalid zero ID, and avoid position updates when the stored menu order is unchanged. Add focused PHPUnit regressions for both behaviors.
In branches/2.6, for 2.6.20.
Fixes #3698.
Fixes #3699.
|
| [6316]
|
johnjamesjacoby
|
Replies: Check for reply hierarchy before assuming topic-title in reply-to.
Fixes a bug causing malformed output when creating a reply via `wp-admin`.
Props tharsheblows . Fixes #2617. See #2844.
|
| [5894]
|
netweb
|
Replies: Clarify inline doc surrounding `bbp_show_lead_topic()` in `bbp_get_reply_position()`
This changest clarify's the docs on how `bbp_show_lead_topic()` affects a reply's menu order in a topics reply loop and determining the correct pagination of reply URL's.
Includes unit tests for `bbp_reply_position()` and `bbp_get_reply_url()`
Fixes #2845
|
| [8256]
|
johnjamesjacoby
|
Replies: Clear denied query objects before template rendering.
After a reply fails parent-topic visibility checks, clear query state and representation flags so later WordPress templates cannot render the denied object. This preserves existing access for authorized users while keeping rejected requests on the 404 path.
In branches/2.6, for 2.6.22.
|
| [8255]
|
johnjamesjacoby
|
Replies: Clear denied query objects before template rendering.
After a reply fails parent-topic visibility checks, clear query state and representation flags so later WordPress templates cannot render the denied object. This preserves existing access for authorized users while keeping rejected requests on the 404 path.
In trunk, for 2.7.
|
| [7665]
|
johnjamesjacoby
|
Replies: Correct @since provenance.
Backport the verified first-shipped version and Subversion revision corrections for replies annotations.
In branches/2.6, for 2.6.19.
|
| [7656]
|
johnjamesjacoby
|
Replies: Correct @since provenance.
Correct first-shipped versions and Subversion revisions for replies annotations verified against source history and release tags.
In trunk, for 2.7.
|
| [7807]
|
johnjamesjacoby
|
Replies: Correct ancestry and position comparisons.
Stop threaded reply ancestry at the root instead of appending a zero ID, and compare normalized integer positions so unchanged replies do not trigger redundant writes. Add regression coverage for both cases.
In trunk, for 2.7.
See #3698.
See #3699.
See #3695.
|
| [7095]
|
johnjamesjacoby
|
Replies: Correct inverted logic in bbp_update_reply_walker().
This commit fixes a bug causing Forum Category metadata to not be updated when publishing a reply.
Props vbadham.
In branches/2.6, for 2.6.6.
See #3376.
|
| [7096]
|
johnjamesjacoby
|
Replies: Correct inverted logic in bbp_update_reply_walker().
This commit fixes a bug causing Forum Category metadata to not be updated when publishing a reply.
Props vbadham.
In trunk, for 2.7.0.
Fixes #3376.
|
| [7625]
|
johnjamesjacoby
|
Replies: Correct positions for unrelated topics.
Backport trunk's strict reply-position lookup and return zero when the requested reply is absent from a topic. Use WordPress URL parsing, correct array spacing, and document intentional lint exceptions while preserving the public parameter name.
In branches/2.6, for 2.6.19.
|
| [6553]
|
johnjamesjacoby
|
Replies: Do not update term cache in `bbp_has_replies()`.
This change removes 2 unnecessary database queries from single topic pages. In situations where the leading topic is gathered as part of the `bbp_has_replies()` loop, this still functions as anticipated, and the original topic loop query will handle updating the term cache appropriately.
|
| [8013]
|
johnjamesjacoby
|
Replies: Enforce parent topic visibility.
Exclude replies whose parent topics are not public from generic public WordPress main queries. Preserve explicit bbPress search, feed, profile, and view-all behavior, and reject direct reply requests when the reply or its parent topic is not readable.
Register the reply visibility filter globally so query counts match visible results, and limit reply-loop index hints to the outer query to avoid colliding with the parent-topic subquery.
Add regression coverage for anonymous listings, mixed post types, privileged view-all access, direct reply requests, and the existing reply-loop query rewrite.
In branches/2.6, for 2.6.20.
|
| [8012]
|
johnjamesjacoby
|
Replies: Enforce parent topic visibility.
Exclude replies whose parent topics are not public from generic public WordPress main queries. Preserve explicit bbPress search, feed, profile, and view-all behavior, and reject direct reply requests when the reply or its parent topic is not readable.
Register the reply visibility filter globally so query counts match visible results, and limit reply-loop index hints to the outer query to avoid colliding with the parent-topic subquery.
Add regression coverage for anonymous listings, mixed post types, privileged view-all access, direct reply requests, and the existing reply-loop query rewrite.
In trunk, for 2.7.
|
| [6317]
|
johnjamesjacoby
|
Replies: Ensure hierarchical replies are correctly wrapped & concatenated into their output buffers in the correct order.
This updates the walker class to not immediately echo it's contents, and wraps it in an `ul` element.
Fixes #2757. See #2830.
|
| [6037]
|
netweb
|
Replies: Fix `@param` PHPDoc in `bbp_insert_topic_update_counts()`
See #1799
|
| [7292]
|
johnjamesjacoby
|
Replies: Fix a bug that causes replies to not appear in some topics.
In WordPress 6.8, `WP_Query` now enforces a consistent alphabetical order for array values. This change breaks the `_bbp_has_replies_where()` function, which previously relied on a strict comparison against `post_type`.
See: https://core.trac.wordpress.org/ticket/59516
This commit replaces the strict comparison with an `array_diff()` check to account for the new behavior. It also optimizes the surrounding logic to minimize repeated calls to `$query->get()`.
Props @vortfu.
Committed to the 2.6 branch for 2.6.13.
See #3631.
|
| [7293]
|
johnjamesjacoby
|
Replies: Fix a bug that causes replies to not appear in some topics.
In WordPress 6.8, `WP_Query` now enforces a consistent alphabetical order for array values. This change breaks the `_bbp_has_replies_where()` function, which previously relied on a strict comparison against `post_type`.
See: https://core.trac.wordpress.org/ticket/59516
This commit replaces the strict comparison with an `array_diff()` check to account for the new behavior. It also optimizes the surrounding logic to minimize repeated calls to `$query->get()`.
Props vortfu, arl1nd.
Committed to trunk for 2.7.
Fixes #3631.
|
| [5924]
|
netweb
|
Replies: Improve type-casting in `bbp_update_reply_topic_id()` missed in r5737
Props thebrandonallen. See #2801.
|
| [5737]
|
johnjamesjacoby
|
Replies: Improve type-casting in reply functions. Also use newly created `bbp_update_reply_to_id()` function in `bbp_update_reply_to()`.
Props thebrandonallen, netweb. See #2801.
|
| [5880]
|
netweb
|
Replies: In `bbp_update_reply_walker()` always update the topics last active time with `bbp_update_topic_last_active_time()` regardless of reply's published status.
This changeset including unit tests ensures that when calling reply actions spam/unspam, trash/untrash, approve/unapprove the reply's parent topic's last active time is updated to the time of the last published reply.
Props netweb. See #2838
|
| [5889]
|
netweb
|
Replies: Include replies menu order when creating replies with `bbp_insert_reply()` improving reply unit tests
See #2843
|
| [6396]
|
johnjamesjacoby
|
Replies: Invert the `$show_none` comparison, to fix the default drop-down text.
Props SergeyBiryukov. Fixes #2617.
|
| [6621]
|
johnjamesjacoby
|
Replies: Normalize `bbp_has_replies()` default search with `bbp_has_topics()`.
This brings parity to how these two functions handle default search parameters.
|
| [5675]
|
johnjamesjacoby
|
Replies: Normalize admin links:
* Remove superfluous `(int)` type casts
* Pass `$args` into filters
* Use `bbp_get_edit_rewrite_id()` where applicable
* Whitespace beside `!` operators
|
| [7458]
|
johnjamesjacoby
|
Replies: Prevent replies to unreadable topics.
Backport the relevant parent-topic capability check from [7350] so Participants cannot submit replies to topics they cannot read. Add regression coverage for private topics.
Props hoangkien1020.
See #3650.
|
| [5891]
|
netweb
|
Replies: Remove previous `menu_order` default from `bbp_insert_reply()` missed in r5889
Antiprops netweb. See #2843.
|
| [8125]
|
johnjamesjacoby
|
Replies: Restore topic titles for pending replies.
A pending reply cannot be embedded even when its author or a moderator can read it. Check read permissions for the fallback title when public embedding is unavailable, while keeping unreadable or password-protected parent titles hidden. Share the filtered forum-status check with old-slug redirects without changing either caller's remaining access rules. Leave public oEmbed eligibility unchanged.
In branches/2.6, for 2.6.21.
Props sbask.
Fixes #3760.
|
| [8124]
|
johnjamesjacoby
|
Replies: Restore topic titles for pending replies.
A pending reply cannot be embedded even when its author or a moderator can read it. Check read permissions for the fallback title when public embedding is unavailable, while keeping unreadable or password-protected parent titles hidden. Share the filtered forum-status check with old-slug redirects without changing either caller's remaining access rules. Leave public oEmbed eligibility unchanged.
In trunk, for 2.7.
Props sbask.
See #3760.
|
| [8276]
|
johnjamesjacoby
|
Replies: Restrict public discovery queries.
Exclude replies whose parent topics are not public from WordPress REST search and post sitemaps. Apply the same parent-topic constraint before REST reply collections are counted so response totals and returned items stay consistent, while preserving global moderator access.
In branches/2.6, for 2.6.22.
Props zonduu.
|
| [8275]
|
johnjamesjacoby
|
Replies: Restrict public discovery queries.
Exclude replies whose parent topics are not public from WordPress REST search and post sitemaps. Apply the same parent-topic constraint before REST reply collections are counted so response totals and returned items stay consistent, while preserving global moderator access.
In trunk, for 2.7.
Props zonduu.
|
| [7139]
|
johnjamesjacoby
|
Replies: Set a default topic ID in bbp_get_reply_url().
This commit prevents a PHP notice when calling this function on an oddly formed reply ID.
In branches/2.6, for 2.6.6. See #3379.
|
| [7138]
|
johnjamesjacoby
|
Replies: Set a default topic ID in bbp_get_reply_url().
This commit prevents a PHP notice when calling this function on an oddly formed reply ID.
In trunk, for 2.7. See #3379.
|
| [8060]
|
johnjamesjacoby
|
Replies: Stop restricted reply feeds.
Prevent WordPress from rendering a feed body after a direct reply request fails reply or parent-topic visibility. Preserve the existing 404 response and authorized access while keeping restricted content out of the response.
Add regression coverage for anonymous and logged-in roles.
In branches/2.6, for 2.6.21.
Props shadow043.
|
| [8059]
|
johnjamesjacoby
|
Replies: Stop restricted reply feeds.
Prevent WordPress from rendering a feed body after a direct reply request fails reply or parent-topic visibility. Preserve the existing 404 response and authorized access while keeping restricted content out of the response.
Add regression coverage for anonymous and logged-in roles.
In trunk, for 2.7.
Props shadow043.
|
| [8116]
|
johnjamesjacoby
|
Replies: Stop unreadable old-slug redirects.
Prevent WordPress from redirecting an old reply slug when the reply, its parent topic, or its forum cannot be read by the current visitor. Preserve public and authorized redirects, existing topic behavior, and unrelated post types.
Add regression coverage for restricted forums, reply and topic status, missing relationships, and the underlying WordPress redirect behavior.
In branches/2.6, for 2.6.21.
|
| [8115]
|
johnjamesjacoby
|
Replies: Stop unreadable old-slug redirects.
Prevent WordPress from redirecting an old reply slug when the reply, its parent topic, or its forum cannot be read by the current visitor. Preserve public and authorized redirects, existing topic behavior, and unrelated post types.
Add regression coverage for restricted forums, reply and topic status, missing relationships, and the underlying WordPress redirect behavior.
In trunk, for 2.7.
|
| [8137]
|
johnjamesjacoby
|
Replies: Sync Forum and Reply To with Topic.
Show the selected topic's forum in a read-only dropdown and stage its Reply To choices when an administrator changes Topic. Preview the destination with the same move permissions used on save. Continue deriving the forum from the accepted topic and validating the parent reply on Update, which repairs stale forum metadata without writing during the preview.
In branches/2.6, for 2.6.21.
Props softglaze.
Fixes #3724.
|
| [8136]
|
johnjamesjacoby
|
Replies: Sync Forum and Reply To with Topic.
Show the selected topic's forum in a read-only dropdown and stage its Reply To choices when an administrator changes Topic. Preview the destination with the same move permissions used on save. Continue deriving the forum from the accepted topic and validating the parent reply on Update, which repairs stale forum metadata without writing during the preview.
In trunk, for 2.7.
Props softglaze.
Fixes #3724.
|
| [6979]
|
johnjamesjacoby
|
Replies: Tell jshint to ignore some internals in scrollToForm() function.
This commit silences some noise from our Grunt processes.
For 2.6.2, branches 2.6.
|
| [6980]
|
johnjamesjacoby
|
Replies: Tell jshint to ignore some internals in scrollToForm() function.
This commit silences some noise from our Grunt processes.
For 2.7, trunk.
|
| [7457]
|
johnjamesjacoby
|
Replies: Test parent-topic reply permissions.
Add regression coverage to ensure Participants cannot submit replies to topics they cannot read.
Props hoangkien1020.
See #3650.
|
| [6246]
|
johnjamesjacoby
|
Replies: Update `bbp_thread_replies()` to skip user profile pages.
* Move from core/options to replies/functions, since this isn't directly an option
* Add `! bbp_is_single_user_replies()` check to force `false` if so
* Update threaded replies pagination to re-include verbiage.
Fixes #3002.
|
| [6721]
|
johnjamesjacoby
|
Replies: Update tests for `test_bbp_get_reply_position()`.
This change makes sure that updating a reply position to zero is still possible, also ensuring that tests continue to pass as expected.
|
| [7842]
|
johnjamesjacoby
|
Replies: Use the reply topic for position classes.
Pass the reply's topic ID when calculating an unstored reply position for its CSS class. This avoids falling back to an unrelated current topic, preserves the correct class, and allows the calculated position to be saved.
In branches/2.6, for 2.6.20.
Props chefranov.
Fixes #3710.
|
| [7841]
|
johnjamesjacoby
|
Replies: Use the reply topic for position classes.
Pass the reply's topic ID when calculating an unstored reply position for its CSS class. This avoids falling back to an unrelated current topic, preserves the correct class, and allows the calculated position to be saved.
In trunk, for 2.7.
Props chefranov.
See #3710.
|
| [7728]
|
johnjamesjacoby
|
Replies: Validate hierarchical reply parents.
Keep parent relationships within a topic and pass the validated parent ID to integrations. This preserves valid same-topic replies.
In branches/2.6, for 2.6.19.
|
| [7727]
|
johnjamesjacoby
|
Replies: Validate hierarchical reply parents.
Keep parent relationships within a topic and pass the validated parent ID to integrations. This preserves valid same-topic replies.
In trunk, for 2.7.
|
| [7178]
|
johnjamesjacoby
|
Replies: add missing period at the end of error string in `bbp_move_reply_handler()`.
In branches/2.6 for 2.6.7. See #3366.
Props immeet94.
|
| [7177]
|
johnjamesjacoby
|
Replies: add missing period at the end of error string in `bbp_move_reply_handler()`.
In trunk for 2.7.0. See #3366.
Props immeet94.
|
| [7448]
|
johnjamesjacoby
|
Replies: allow trashed replies to be marked as spam.
Keep the front-end Spam action available for trashed replies so moderators can classify replies beneath a spam topic without restoring them first. Continue hiding Trash for replies already marked as spam.
In trunk, for 2.7.
Props rollybueno.
Fixes #3411.
From https://github.com/bbpress/bbPress/pull/36.
|
| [7450]
|
johnjamesjacoby
|
Replies: allow trashed replies to be marked as spam.
Keep the front-end Spam action available for trashed replies so moderators can classify replies beneath a spam topic without restoring them first. Continue hiding Trash for replies already marked as spam.
Merges r7448 to 2.6.
In 2.6, for 2.6.16.
See #3411.
|
| [7180]
|
johnjamesjacoby
|
Replies: allow zero value `bbp_get_form_option()`.
This commit specifically re-allows for infinite editing of topics and replies to work as intended. Previous to this, it was impossible to retrieve a "0" value, even though the setting description claims that it is possible and it would be saved correctly in the database.
In branches/2.6 for 2.6.7. Fixes #3386.
|
| [7179]
|
johnjamesjacoby
|
Replies: allow zero value `bbp_get_form_option()`.
This commit specifically re-allows for infinite editing of topics and replies to work as intended. Previous to this, it was impossible to retrieve a "0" value, even though the setting description claims that it is possible and it would be saved correctly in the database.
In trunk for 2.7.0. See #3386.
|
| [7409]
|
johnjamesjacoby
|
Replies: avoid bool-increment deprecation in `bbp_get_reply_position_raw()`
Fixes the PHP 8.3+ `Increment on type bool has no effect` warning, guarding the increment behind a `false !== $reply_position` check, and explicitly resetting to `0` if not-found.
In trunk, for 2.7.
Props dd32.
Fixes: #3672.
From: https://github.com/bbpress/bbPress/pull/41
|
| [7011]
|
johnjamesjacoby
|
Replies: avoid stomping `t` in Reply JavaScript.
This commit fixes a bug causing the adminbar to become undefined, resulting in a JavaScript error that caused hierarchical replies not to work correctly.
Props Kipperlenny. Fixes #3301. For 2.6.3, branches/2.6.
|
| [7010]
|
johnjamesjacoby
|
Replies: avoid stomping `t` in Reply JavaScript.
This commit fixes a bug causing the adminbar to become undefined, resulting in a JavaScript error that caused hierarchical replies not to work correctly.
Props Kipperlenny. Fixes #3301. For 2.7, trunk.
|
| [6965]
|
johnjamesjacoby
|
Replies: ensure visual editor works correctly with hierarchical replies.
This commit updates reply.js in the default theme to include a bit of element juggling that prevents TinyMCE from freezing up when it is relocated on the page.
Before this commit, clicking "Reply" while having the Visual Editor enabled would cause it to not be able to be typed inside of. Now, when clicking commit, TinyMCE is correctly reinvoked in its new location, and the page will expediently scroll to that new position, fixing a related UX bug where it was possible for the reply form to get lost inside of deep hierarchies.
Props chherbst. Fixes #2646. For 2.6.2, branches/2.6.
|
| [6964]
|
johnjamesjacoby
|
Replies: ensure visual editor works correctly with hierarchical replies.
This commit updates reply.js in the default theme to include a bit of element juggling that prevents TinyMCE from freezing up when it is relocated on the page.
Before this commit, clicking "Reply" while having the Visual Editor enabled would cause it to not be able to be typed inside of. Now, when clicking commit, TinyMCE is correctly reinvoked in its new location, and the page will expediently scroll to that new position, fixing a related UX bug where it was possible for the reply form to get lost inside of deep hierarchies.
Props chherbst. Fixes #2646. For 2.7, trunk.
|
| [5859]
|
johnjamesjacoby
|
Replies: fallback on `post_parent` in `bbp_update_reply_walker()`.
This changeset fixes a bug where topic reply counts were not updated when replies were permanently deleted, causing hidden reply counts to be wildly inaccurate.
Props thebrandonallen. Fixes #2529.
|
| [7147]
|
johnjamesjacoby
|
Replies: fix clicking "Reply" link from the lead topic.
This commit adjusts reply.js and bbp_get_topic_reply_link() so clicking "Reply" from the lead topic now behaves similarly to clicking "Reply" from a reply. This includes support for hierarchical replies being on or off.
In branches/2.6, for 2.6.6. See #3385.
|
| [7148]
|
johnjamesjacoby
|
Replies: fix clicking "Reply" link from the lead topic.
This commit adjusts reply.js and bbp_get_topic_reply_link() so clicking "Reply" from the lead topic now behaves similarly to clicking "Reply" from a reply. This includes support for hierarchical replies being on or off.
In trunk, for 2.7. Fixes #3385.
|
| [7174]
|
johnjamesjacoby
|
Replies: fix hierarchical replies not scrolling to the new form location when admin toolbar is hidden.
This commit checks that the `adminbar` variable is not empty before also making sure that it is not `undefined`, as it's possible for it to also simply be null when the toolbar is hidden.
In branches/2.6 for 2.6.7. Fixes #3327.
Props mjonesnerdery.
|
| [7173]
|
johnjamesjacoby
|
Replies: fix hierarchical replies not scrolling to the new form location when admin toolbar is hidden.
This commit checks that the `adminbar` variable is not empty before also making sure that it is not `undefined`, as it's possible for it to also simply be null when the toolbar is hidden.
In trunk for 2.7.0. See #3327.
Props mjonesnerdery.
|
| [6427]
|
johnjamesjacoby
|
Replies: fix incorrect inline doc in `bbp_current_user_can_access_create_reply_form()`.
|
| [6706]
|
johnjamesjacoby
|
Replies: introduce `bbp_get_public_reply_statuses()` to speed-up reply queries.
This change removes the `closed` post status from several reply-only queries, ensuring that query indexes are used effectively. It also brings parity to the Replies component that exists in both Forums & Topics.
|
| [6717]
|
johnjamesjacoby
|
Replies: performance optimization to `bbp_update_reply_position()`.
This change uses `wpdb::update()` instead of `wp_update_post()` and juggles the `bbp_clean_post_cache()` filter, retaining object caches of related posts and queries, and also removes other unintended `edit_post` action interference.
Fixes #3169.
|
| [7140]
|
johnjamesjacoby
|
Replies: prevent adding empty values to pre-spam & pre-trash meta data.
This commit filters empty values from meta data before saving them, as well as removing a simple type-cast and replacing it with a more intentional is_array() check. This new approach works because get_post_meta() will call maybe_unserialize() and always return an array if it exists, or return an empty string if it does not. If it's not an array, we know it should be an empty one.
In branches/2.6, for 2.6.6. See #3409.
|
| [7142]
|
johnjamesjacoby
|
Replies: prevent adding empty values to pre-spam & pre-trash meta data.
This commit filters empty values from meta data before saving them, as well as removing a simple type-cast and replacing it with a more intentional is_array() check. This new approach works because get_post_meta() will call maybe_unserialize() and always return an array if it exists, or return an empty string if it does not. If it's not an array, we know it should be an empty one.
In trunk, for 2.7. Fixes #3409.
|
| [7131]
|
johnjamesjacoby
|
Replies: remove post-form check from `bbp_get_form_reply_to()`.
This commit reinstates the reply-to hierarchy when used inside of a non-POST request, namely via theme-side GET requests where JavaScript may not be relied upon.
In branches/2.6, for 2.6.6.
See #3385.
|
| [7130]
|
johnjamesjacoby
|
Replies: remove post-form check from `bbp_get_form_reply_to()`.
This commit reinstates the reply-to hierarchy when used inside of a non-POST request, namely via theme-side GET requests where JavaScript may not be relied upon.
In trunk, for 2.7.
See #3385.
|
| [7141]
|
johnjamesjacoby
|
Replies: remove unintended duplicate array_filter() call from r7140.
|
| [6096]
|
johnjamesjacoby
|
Replies: use `appendChild` vs. `insertBefore` for inline JS replies.
Fixes #2971. Props r-a-y.
|
| [7323]
|
johnjamesjacoby
|
Replies: use `bbp_get_reply_url()` instead of `bbp_get_reply_to_link()`.
This change ensures that reply-to links work outside of the single-topic context (user profiles, search pages, etc...)
Props gdragon.
In branches/2.6, for 2.6.14.
Fixes #3595.
|
| [7322]
|
johnjamesjacoby
|
Replies: use `bbp_get_reply_url()` instead of `bbp_get_reply_to_link()`.
This change ensures that reply-to links work outside of the single-topic context (user profiles, search pages, etc...)
Props gdragon.
In trunk, for 2.7.
Fixes #3609.
|
| [7242]
|
johnjamesjacoby
|
Replies: use correct wrapper element in `bbp_list_replies()`.
This change ensures that the proper `div/ol/ul` wrapper is applied (via the `style` parameter argument) to the walked replies hierarchy, and avoids the potential for generating invalid HTML mark-up.
In branches/2.6, for 2.6.10.
Props mdjwel via GitHub pull request.
|
| [7241]
|
johnjamesjacoby
|
Replies: use correct wrapper element in `bbp_list_replies()`.
This change ensures that the proper `div/ol/ul` wrapper is applied (via the `style` parameter argument) to the walked replies hierarchy, and avoids the potential for generating invalid HTML mark-up.
In trunk, for 2.7.0.
Props mdjwel via GitHub pull request.
|
| [6826]
|
johnjamesjacoby
|
Replies: use existing `reply_to` value if none is passed.
This change fixes a bug that would cause the reply hierarchy to be broken when non-moderator users would edit their existing replies within the allotted editing period.
Props wpdennis. Fixes #3205.
|
| [3274]
|
johnjamesjacoby
|
Reply "View" action link should link to reply URL and not the permalink for the reply, since not all themes will support single reply views. Unset the "View" link if user is viewing trash and does not have proper caps.
|