| [8070]
|
johnjamesjacoby
|
Forums: Correct nested topic freshness.
Select the newest topic across a forum and its reachable subforums by raw activity time instead of child enumeration order or topic ID. Process each forum once with an iterative postorder traversal so duplicate and cyclic filtered relationships terminate without relying on the PHP call stack.
Add regression coverage for sibling ordering, parent and subforum activity, and filtered cycles.
In trunk, for 2.7.
Props terresquall, noruzzaman.
Fixes #3637.
|
| [7855]
|
johnjamesjacoby
|
Forums: Correct status introduction version.
Update the Forum Status annotations after the feature was backported to the 2.6 branch for bbPress 2.6.20.
In trunk, for 2.7.
See #3702.
|
| [8049]
|
johnjamesjacoby
|
Forums: Correct the freshness query annotation.
Record 2.6.21 and the canonical backport revision as the first shipped version for the freshness-query helper.
In trunk, for 2.7.
See #2915.
|
| [7470]
|
johnjamesjacoby
|
Forums: Enforce inherited forum visibility.
Forum descendants inherit the most restrictive visibility in their ancestor chain. This change resolves the source forum before displaying aggregate freshness and author links, preventing private or hidden descendant details from appearing through a public parent while preserving them for users who can read every restricted forum in the hierarchy.
In 2.6, for 2.6.16.
Props im_rootkid.
|
| [7469]
|
johnjamesjacoby
|
Forums: Enforce inherited forum visibility.
Forum descendants inherit the most restrictive visibility in their ancestor chain. This change resolves the source forum before displaying aggregate freshness and author links, preventing private or hidden descendant details from appearing through a public parent while preserving them for users who can read every restricted forum in the hierarchy.
In trunk, for 2.7.
Props im_rootkid.
|
| [7474]
|
johnjamesjacoby
|
Forums: Enforce inherited visibility in queries.
Expand restricted forum exclusions to include countable descendants and make read_forum check ancestor access. This prevents search and feeds from exposing content below restricted parents.
Resolve the current user correctly when honoring filtered per-forum moderator access, preserving explicit moderator exceptions throughout descendant trees.
In 2.6, for 2.6.16.
Props winty.
|
| [7473]
|
johnjamesjacoby
|
Forums: Enforce inherited visibility in queries.
Expand restricted forum exclusions to include countable descendants and make read_forum check ancestor access. This prevents search and feeds from exposing content below restricted parents.
Resolve the current user correctly when honoring filtered per-forum moderator access, preserving explicit moderator exceptions throughout descendant trees.
In trunk, for 2.7.
Props winty.
|
| [7085]
|
johnjamesjacoby
|
Forums: Escape forum descriptions in admin-area list tables.
This commit ensures that HTML is not rendered where it is not intended to be, most important to users having the `unfiltered_html` capability.
Props binit.
In branches/2.6, for 2.6.5.
See #3374.
|
| [7084]
|
johnjamesjacoby
|
Forums: Escape forum descriptions in admin-area list tables.
This commit ensures that HTML is not rendered where it is not intended to be, most important to users having the `unfiltered_html` capability.
Props binit.
In trunk, for 2.7.0.
See #3374.
|
| [8329]
|
johnjamesjacoby
|
Forums: Exclude protected content from listings.
Keep topics and replies beneath password-protected forums out of aggregate public queries, even after a forum password has been entered. Preserve direct access and child loops scoped to an unlocked forum or topic. Apply forum ancestry checks to affected get_posts() queries that otherwise suppress SQL filters, and keep REST collection permissions intact across supported WordPress versions.
Stop forum-ancestor traversal when a parent forum is missing, avoiding a fatal error in malformed hierarchies.
In branches/2.6, for 2.6.22.
|
| [8328]
|
johnjamesjacoby
|
Forums: Exclude protected content from listings.
Keep topics and replies beneath password-protected forums out of aggregate public queries, even after a forum password has been entered. Preserve direct access and child loops scoped to an unlocked forum or topic. Apply forum ancestry checks to affected get_posts() queries that otherwise suppress SQL filters, and keep REST collection permissions intact across supported WordPress versions.
Stop forum-ancestor traversal when a parent forum is missing, avoiding a fatal error in malformed hierarchies.
In trunk, for 2.7.
|
| [7692]
|
johnjamesjacoby
|
Forums: Exclude restricted IDs from explicit queries.
Remove inaccessible forum IDs from post__in before WordPress builds forum queries. Keep accessible forums and non-forum posts in mixed queries, and use a zero-ID inclusion when none remain.
In branches/2.6, for 2.6.19.
|
| [7691]
|
johnjamesjacoby
|
Forums: Exclude restricted IDs from explicit queries.
Remove inaccessible forum IDs from post__in before WordPress builds forum queries. Keep accessible forums and non-forum posts in mixed queries, and use a zero-ID inclusion when none remain.
In trunk, for 2.7.
|
| [5855]
|
johnjamesjacoby
|
Forums: Fix copy-pasta filter names.
This changeset corrects filters used in 2 `apply_filters()` calls to properly match their function names.
Props netweb. Fixes #2688.
|
| [5655]
|
netweb
|
Forums: Fix missing meta data during new forum creation
* Call `bbp_open_forum()` if the forum is "open" to add the forum `_bbp_status` = `open` meta
* Call `bbp_normalize_forum()` if the forum is a "forum" to add the forum `_bbp_forum_type` = `forum` meta
Props netweb. Fixes #2647
|
| [7833]
|
johnjamesjacoby
|
Forums: Improve restricted group forum access and queries.
Defer group-page filters until BuddyPress parses rewrite URLs. Allow active group members without a bbPress role to read their private group forums, topics, and replies while preserving ancestor and content restrictions. Batch descendant lookups and prime forum capability data to avoid per-forum queries on large installations.
In branches/2.6, for 2.6.20.
Props r-a-y.
Fixes #3693.
|
| [7836]
|
johnjamesjacoby
|
Forums: Improve restricted group forum access and queries.
Defer group-page filters until BuddyPress parses rewrite URLs. Allow active group members without a bbPress role to read their private group forums, topics, and replies while preserving ancestor and content restrictions. Batch descendant lookups and prime forum capability data to avoid per-forum queries on large installations.
In trunk, for 2.7. Also in branches/2.6 as r7833.
Props r-a-y.
See #3693.
|
| [7320]
|
johnjamesjacoby
|
Forums: Improve targeting of `bbp_pre_get_posts_normalize_forum_visibility` filter.
This change ensures that forum (post) IDs are only excluded from queries where intended, and specifically not when querying for attachments on draft posts & pages.
Props shawfactor, sirlouen.
In branches/2.6, for 2.6.14.
Fixes #3609.
|
| [7321]
|
johnjamesjacoby
|
Forums: Improve targeting of `bbp_pre_get_posts_normalize_forum_visibility` filter.
This change ensures that forum (post) IDs are only excluded from queries where intended, and specifically not when querying for attachments on draft posts & pages.
Props shawfactor, sirlouen.
In trunk, for 2.7.
Fixes #3609.
|
| [5923]
|
netweb
|
Forums: Improve type-casting in forum functions.
Props thebrandonallen. See #2801.
|
| [8438]
|
johnjamesjacoby
|
Forums: Initialize feed link filter values.
When no forum is available, both feed link helpers reached their filters without defining the link or URL, causing PHP warnings. Initialize those values as empty strings and cover the no-forum path without changing valid forum links.
In trunk, for 2.7.
See #3794.
|
| [6315]
|
johnjamesjacoby
|
Forums: Introduce `bbp_list_forums_subforum_classes` filter, to allow filtering of sub-forum links.
Props gordielachance. Fixes #2760.
|
| [5856]
|
johnjamesjacoby
|
Forums: Introduce `bbp_update_forum_visibility` action in `bbp_save_forum_extras()`
This changeset provides custom visibilites with an execution point to perform their own actions.
Fixes #2740.
|
| [7962]
|
johnjamesjacoby
|
Forums: Keep closed content editable.
Treat closed topics and forums as closed to new content without freezing existing edits. Keep closed topics publicly readable, preserve normal edit locks and capabilities across theme compatibility, REST, XML-RPC, and custom integrations, and keep other closed forums unavailable as move destinations.
In trunk, for 2.7.
Fixes #3680.
|
| [7963]
|
johnjamesjacoby
|
Forums: Keep closed content editable.
Treat closed topics and forums as closed to new content without freezing existing edits. Keep closed topics publicly readable, preserve normal edit locks and capabilities across theme compatibility, REST, XML-RPC, and custom integrations, and keep other closed forums unavailable as move destinations.
Merges [7962] to the 2.6 branch.
In branches/2.6, for 2.6.20.
See #3680.
|
| [7630]
|
johnjamesjacoby
|
Forums: Keep non-public posts out of freshness.
Keep forum and topic last-activity metadata public when topics or replies are non-public. Suppress stale non-public freshness and author links while preserving per-forum moderator access.
In 2.6, for 2.6.19.
|
| [7631]
|
johnjamesjacoby
|
Forums: Keep non-public posts out of freshness.
Keep forum and topic last-activity metadata public when topics or replies are non-public. Suppress stale non-public freshness and author links while preserving per-forum moderator access.
In trunk, for 2.7.
|
| [5731]
|
johnjamesjacoby
|
Forums: Normalize type-casting in some count functions. More to do here.
Props thebrandonallen, netweb. See #2801.
|
| [6020]
|
netweb
|
Forums: Overzealous type coercion caused `bbp_forum_query_last_reply_id()` to skip the database query in every instance (since 0 is never === false). As such, the resetting of `_bbp_last_reply_id` got short-circuted in some cases.
This fix is for the 2.5 branch, `/trunk` fixed this inadvertantly in [5954]
Props boonebgorges, mauteri.
Fixes #2414.
|
| [7768]
|
johnjamesjacoby
|
Forums: Preserve category status mismatches.
Combine each category ancestor's status with the preceding result so a matching outer category cannot erase an intermediate mismatch. Complete the forum status helper coverage and add a nested-category regression test.
In trunk, for 2.7.
See #3696.
See #3695.
|
| [8120]
|
johnjamesjacoby
|
Forums: Preserve freshness after activity query failure.
The scalar activity query introduced in [8047] and backported in [8048] can fail on very large forums. Return a failure sentinel instead of reading a null row, and retain each updater's own stored ID so last-reply and last-active metadata are not cleared or conflated. Preserve the activity filter's opportunity to supply a replacement value. This guard does not shorten the query.
In branches/2.6, for 2.6.21.
Props bor0.
See #2915.
From https://github.com/bbpress/bbPress/pull/45.
|
| [8117]
|
johnjamesjacoby
|
Forums: Preserve freshness after activity query failure.
The scalar activity query introduced in [8047] and backported in [8048] can fail on very large forums. Return a failure sentinel instead of reading a null row, and retain each updater's own stored ID so last-reply and last-active metadata are not cleared or conflated. Preserve the activity filter's opportunity to supply a replacement value. This guard does not shorten the query.
In trunk, for 2.7.
Props bor0.
See #2915.
From https://github.com/bbpress/bbPress/pull/45.
|
| [8017]
|
johnjamesjacoby
|
Forums: Preserve restricted content lifecycle.
Use an unfiltered structural child lookup for forum and topic lifecycle operations so restricted descendants are counted and transitioned consistently regardless of the current user. Apply it to trash, spam, permanent deletion, hidden-topic counts, and subforum discovery.
Keep retained attachments private when their bbPress parent is permanently deleted, reject REST reads beneath missing or unrecognized forum ancestors, and require both forum-attribute and deletion permissions for XML-RPC trash transitions.
Add regression coverage for restricted forum cascades, attachment retention, structural counts, REST access, and XML-RPC capabilities.
In branches/2.6, for 2.6.20.
|
| [8016]
|
johnjamesjacoby
|
Forums: Preserve restricted content lifecycle.
Use an unfiltered structural child lookup for forum and topic lifecycle operations so restricted descendants are counted and transitioned consistently regardless of the current user. Apply it to trash, spam, permanent deletion, hidden-topic counts, and subforum discovery.
Keep retained attachments private when their bbPress parent is permanently deleted, reject REST reads beneath missing or unrecognized forum ancestors, and require both forum-attribute and deletion permissions for XML-RPC trash transitions.
Add regression coverage for restricted forum cascades, attachment retention, structural counts, REST access, and XML-RPC capabilities.
In trunk, for 2.7.
|
| [7720]
|
johnjamesjacoby
|
Forums: Require visibility in OR meta queries.
Preserve caller OR meta-query semantics while requiring the forum visibility clause in topic and reply queries. Leave existing AND queries unchanged and cover both post types with regression tests.
In branches/2.6, for 2.6.19.
|
| [7719]
|
johnjamesjacoby
|
Forums: Require visibility in OR meta queries.
Preserve caller OR meta-query semantics while requiring the forum visibility clause in topic and reply queries. Leave existing AND queries unchanged and cover both post types with regression tests.
In trunk, for 2.7.
|
| [7490]
|
johnjamesjacoby
|
Forums: Restrict forum structure and attributes.
Require global forum authority to change hierarchy, order, moderator assignments, and access attributes across theme, admin, REST, and XML-RPC edits. Introduce an object-level capability so BuddyPress Group Admins can manage attributes for their own Group Forums without granting structural access to Group Moderators.
In branches/2.6, for 2.6.16.
Props hieunx91.
|
| [7489]
|
johnjamesjacoby
|
Forums: Restrict forum structure and attributes.
Require global forum authority to change hierarchy, order, moderator assignments, and access attributes across theme, admin, REST, and XML-RPC edits. Introduce an object-level capability so BuddyPress Group Admins can manage attributes for their own Group Forums without granting structural access to Group Moderators.
In trunk, for 2.7.
Props hieunx91.
|
| [8269]
|
johnjamesjacoby
|
Forums: Restrict unclassified visibilities.
Treat forum post status values without explicit public, private, or hidden handling like hidden forums. Apply the same policy to descendants, capability checks, REST requests, oEmbed, blocks, and forum queries while preserving filtered visibility APIs and moderator access.
Add a filtered visibility ID helper and regression coverage for mixed, padded, and custom status values.
In branches/2.6, for 2.6.22.
|
| [8268]
|
johnjamesjacoby
|
Forums: Restrict unclassified visibilities.
Treat forum post status values without explicit public, private, or hidden handling like hidden forums. Apply the same policy to descendants, capability checks, REST requests, oEmbed, blocks, and forum queries while preserving filtered visibility APIs and moderator access.
Add a filtered visibility ID helper and regression coverage for mixed, padded, and custom status values.
In trunk, for 2.7.
|
| [8406]
|
johnjamesjacoby
|
Forums: Select freshness by post date.
Choose the latest reply and activity by post date, with ID tie-breaking, across forum updaters and batched freshness repair. Preserve existing filters and stored freshness when a database query fails.
In trunk, for 2.7.
Fixes #2876.
|
| [8127]
|
johnjamesjacoby
|
Forums: Stop after finding the latest public topic.
Use an ID-ordered, limited lookup for the latest eligible topic when recalculating forum freshness. This lets the database stop once it finds a match while retaining the existing topic-status rules, filtered compatibility path, and reply lookup. The remaining reply query still needs separate work for very large forums.
In branches/2.6, for 2.6.21.
See #3759.
|
| [8126]
|
johnjamesjacoby
|
Forums: Stop after finding the latest public topic.
Use an ID-ordered, limited lookup for the latest eligible topic when recalculating forum freshness. This lets the database stop once it finds a match while retaining the existing topic-status rules, filtered compatibility path, and reply lookup. The remaining reply query still needs separate work for very large forums.
In trunk, for 2.7.
See #3759.
|
| [7672]
|
johnjamesjacoby
|
Forums: Synchronize visibility options.
Backport cached private and hidden forum ID synchronization for generic WordPress forum status changes. Preserve existing hooks and status behavior.
In branches/2.6, for 2.6.19.
|
| [7671]
|
johnjamesjacoby
|
Forums: Synchronize visibility options.
Keep cached private and hidden forum IDs synchronized when WordPress inserts or updates a forum outside of the bbPress visibility functions. Centralize option updates without re-entering post-status transitions, while preserving existing hooks and status behavior.
In trunk, for 2.7.
|
| [5734]
|
johnjamesjacoby
|
Forums: Type-cast improvements to `bbp_forum_query_last_reply_id()`.
Fixes bug where strict `false` comparison would cache cache condition to never occur.
Props thebrandonallen, netweb. See #2801.
|
| [6733]
|
netweb
|
Forums: Update `bbp_untrash_forum_topics()` PHPDoc description.
Props espellcaste.
Fixes #3175.
|
| [5918]
|
netweb
|
Forums: Updated PHPDocs and unit tests for `bbp_update_forum_last_*()` functions.
Props thebrandonallen. Fixes #2811
|
| [6024]
|
johnjamesjacoby
|
Forums: Updates to `bbp_list_forums()`:
* Always run filter, even over empty output
* Only wrap output if not empty
* Ensure that `$count` related variables are accurately reset during each loop iteration
* Surrounding code clean-up
Fixes #2951.
|
| [6576]
|
johnjamesjacoby
|
Forums: Use `bbp_get_forum_subforum_count()` in `bbp_forum_get_subforums()`.
This performance optimization will result in 1 less query per forum in the forums list that does not have subforums, by checking the subforum meta-data before trying to query for subforums that do not exist anyways.
This is less of an issue with a persistent object cache, but those without that luxury can now save those database queries for when they really matter.
|
| [6559]
|
johnjamesjacoby
|
Forums: Use `edit_forum` instead of `keep_gate` in the admin toggle/row methods.
This change trusts the `edit_forum` meta capability to serve it's intended purpose. It also allows more flexibility with things like BuddyPress Group Forums or custom forum-ownership style extensions.
|
| [6545]
|
johnjamesjacoby
|
Forums: Use `no_found_rows` by default in `bbp_has_forums()`
Forums do not currently support pagination, so the total number of rows is not traditionally useful for this loop. In cases where it is, it can be explicitly overloaded in the `$args` array.
This results in 1 less database query per page where a forums list is shown, and a speed improvement overall.
|
| [7456]
|
johnjamesjacoby
|
Forums: avoid redundant ancestor updates.
Introduce a forum walker so forum, topic, and reply updates each traverse their hierarchy once. Preserve known freshness values while walking parents, avoid unrelated subforum recounts during topic activity, and update topic voice counts once after engagements.
In branches/2.6, for 2.6.16.
Fixes #3679.
|
| [7455]
|
johnjamesjacoby
|
Forums: avoid redundant ancestor updates.
Introduce a forum walker so forum, topic, and reply updates each traverse their hierarchy once. Preserve known freshness values while walking parents, avoid unrelated subforum recounts during topic activity, and update topic voice counts once after engagements.
In trunk, for 2.7.
See #3679.
|
| [7272]
|
johnjamesjacoby
|
Forums: bail out of `pre_get_posts` if empty `post_type` parameter
This change addresses a regression inside of `bbp_pre_get_posts_normalize_forum_visibility` that was unintentionally targeting posts queries that were not sourced from the ones built into bbPress (forum/topic/reply), causing the majority of non-bbPress queries to return empty results.
Fixes #3601.
In branches/2.6, for 2.6.11.
|
| [6480]
|
johnjamesjacoby
|
Forums: be strict in `array_search()` calls.
|
| [7300]
|
johnjamesjacoby
|
Forums: cast return value of `post__not_in` as array.
This change avoids a potentially fatal PHP error if that query variable is a string.
Props rollybueno.
In branches/2.6, for 2.6.14.
Fixes #3636.
|
| [7299]
|
johnjamesjacoby
|
Forums: cast return value of `post__not_in` as array.
This change avoids a potentially fatal PHP error if that query variable is a string.
Props rollybueno.
In trunk, for 2.7.
Fixes #3636.
|
| [7423]
|
johnjamesjacoby
|
Forums: correct version annotations for mixed-query visibility.
The post-type-aware visibility clause first shipped in 2.6.15.
In trunk, for 2.7.
|
| [7331]
|
johnjamesjacoby
|
Forums: fix meta-key typo in `bbp_get_forum_topic_count_hidden()`
This change replaces `_bbp_topic_reply_count_hidden` with `_bbp_total_topic_count_hidden` which is the intended name of the meta-key.
Props sirlouen.
In branches/2.6, for 2.6.14.
Fixes #3611.
|
| [7330]
|
johnjamesjacoby
|
Forums: fix meta-key typo in `bbp_get_forum_topic_count_hidden()`
This change replaces `_bbp_topic_reply_count_hidden` with `_bbp_total_topic_count_hidden` which is the intended name of the meta-key.
Props sirlouen.
In trunk, for 2.7.
Fixes #3611.
|
| [6718]
|
johnjamesjacoby
|
Forums: make sure topic & reply counts are proper integers for `_n()` usage.
This change fixes a bug where formatted strings would cause an incorrect singular and plural string assignment, in forums that had over 1k posts.
|
| [7342]
|
johnjamesjacoby
|
Forums: prevent PHP warnings on singular bbPress pages when post ID's are not set.
This change adds checks for empty `$wp_query->post->ID` before using it inside of `bbp_forum_enforce_private()` and `bbp_forum_enforce_hidden()`.
In branches/2.6, for 2.6.15.
Fixes #3644.
|
| [7341]
|
johnjamesjacoby
|
Forums: prevent PHP warnings on singular bbPress pages when post ID's are not set.
This change adds checks for empty `$wp_query->post->ID` before using it inside of `bbp_forum_enforce_private()` and `bbp_forum_enforce_hidden()`.
In trunk, for 2.7.
Fixes #3644.
|
| [6875]
|
johnjamesjacoby
|
Forums: protect against a missing/malformed `forum_id` value when listing subforums.
Fixes #3232.
|
| [6860]
|
johnjamesjacoby
|
Forums: revert default mark-up back to div's and span's in `bbp_list_forums()`.
This fixes potentially invalid mark-up from attempting to use list elements instead of spans.
Also includes changes to CSS selectors to make them more flexible with different child elements.
See #3217.
|
| [6872]
|
johnjamesjacoby
|
Forums: revert part of r6860.
Go back to `ul` and `li` to avoid breaking CSS for existing installs, and use a CSS separator instead to address the original invalid markup issues.
This might show an extra separator in circumstances where filters or template-overrides are targeting very specific things, but that's better than breaking mark-up changes.
See #3217.
|
| [7008]
|
johnjamesjacoby
|
Forums: revert the accidental reversal of the forums widget results order.
This commit makes sure that forums results are displayed in the expected ascending order, fixing a copy/paste regression introduced in 2.6.0.
Props netweb. Fixes #3295. See r6506. For 2.6.3, branches/2.6.
|
| [7009]
|
johnjamesjacoby
|
Forums: revert the accidental reversal of the forums widget results order.
This commit makes sure that forums results are displayed in the expected ascending order, fixing a copy/paste regression introduced in 2.6.0.
Props netweb. Fixes #3295. See r6506. For 2.7, trunk.
|
| [7346]
|
johnjamesjacoby
|
Forums: swap out `bbp_is_user_keymaster()` check for `moderate` capability when checking the `edit_forums` and `edit_others_forums` mapped forum caps.
This commit fixes a bug that was causing the top-level admin-area "Forums" menu to not appear for logged in users who were assigned the "Moderator" role.
Moderators are intended to be like Editors, capable of moderating all forum-specific content. Sometimes that includes editing forum titles, descriptions, slugs, or creating a new forum and moving a bunch of existing topics into it.
Note: this change is largely a visual one, as Moderators have had the ability to edit forums since bbPress 2.2 when BuddyPress Group Forum support was added, if they already had the edit URL.
In trunk, for 2.7.
Fixes #3646.
|
| [7694]
|
johnjamesjacoby
|
Forums: tighten visibility in nested and group views.
Keep forum visibility checks consistent across nested content and group page titles. Add regression coverage for access boundaries.
In 2.6, for 2.6.19.
|
| [7693]
|
johnjamesjacoby
|
Forums: tighten visibility in nested and group views.
Keep forum visibility checks consistent across nested content and group page titles. Add regression coverage for access boundaries.
In trunk, for 2.7.
|
| [2974]
|
johnjamesjacoby
|
Full audit of user/topic/reply/view permalinks. Use $wp_rewrite->using_permalinks() method in place of $wp_rewrite->permalink_structure. See r2973
|
| [6102]
|
netweb
|
General - Administration: Add i18n text domain missed in [6101]
See #2246.
|
| [6055]
|
netweb
|
General - Administration: Add pending status topic and reply statistics to `bbp_get_statistics()`
Following the introduction of "pending" status topics and replies in bbPress 2.6, `bbp_get_statistics()` now includes these count statistics in the hidden topic and reply statistics.
Fixes #2958.
|
| [6101]
|
netweb
|
General - Administration: Introduce bulk actions to spam and unspam topics and replies in wp-admin
This Friday #yolo changeset comes care of the upcoming WordPress 4.7 release via #WP16031 / wp:changeset:38647
Props jmdodd.
See #2246.
|
| [6061]
|
netweb
|
General - Administration: Update "change forum role" dropdown
This changeset resolves an issue introduced in WordPress 4.4 ( [WP:changeset:34636] / #WP27743 ) which caused bbPress "change forum role" dropdown to only work using the "bottom" user list table dropdown, for WordPress versions < 4.6 the "change forum role" dropdown is now only shown at the "top" of the user list table.
This changeset also adds a new parameter `$which` to `user_role_bulk_dropdown()` which was added in WordPress 4.6 ( [WP:changeset:37422] / #WP35307 ) to pass the location of the extra table nav markup for the "top" or "bottom" "change role" dropdown, and in turn fixes bbPress' "change forum role" dropdown to once again work at the "top" and "bottom" of the user list table.
Props ocean90.
Fixes #2906.
|
| [7382]
|
johnjamesjacoby
|
General - Administration: add "loaded" hooks to admin classes.
This change allows third-party plugins access to various class objects after they are loaded, specifically their `$this` references in their related `setup_actions()` methods.
In trunk, for 2.7.
Fixes #3660.
|
| [6036]
|
netweb
|
General Performance: Introduce increase/decrease helper count functions
Previously when a new topic or reply was created, a bunch of queries to recalculate the topic and reply counts for topics and forums were ran. Now these have been replaced with more efficient increase/decrease helper functions to get the current value and just "bump" the count based on the action (new topic-reply/split-topic/move-topic/spam-trash-topic/etc...)
Props thebrandonallen, tharsheblows, netweb
See #1799
|
| [6046]
|
netweb
|
General: Add debug trace to `bbp_setup_current_user()` notice.
Previously, the `bbp_setup_current_user was called incorrectly` notice would not output any useful info for developers.
This commit adds a debug trace so developers are able to determine
whereabouts in the codebase this notice is originating from.
Props r-a-y
Fixes #2932
|
| [6499]
|
johnjamesjacoby
|
General: Audit `wp_insert_post()` usages.
Return a `WP_Error` object in some instances, and explicitly do not in others.
Where possible, use the error message in the user feedback response.
Fixes #2817.
|
| [8292]
|
johnjamesjacoby
|
General: Avoid PHP 8.6 type-check deprecations.
Use `is_int()` after successful front-end profile updates, preserving existing edit and redirect behavior.
Use `instanceof` for fixed-class object checks, preserving existing validation behavior without passing strings to `is_a()`.
Guard mixed global values before dynamic `is_a()` checks, preserving fallback behavior for invalid globals.
In branches/2.6, for 2.6.22.
Fixes #3783.
|
| [8291]
|
johnjamesjacoby
|
General: Avoid PHP 8.6 type-check deprecations.
Use `is_int()` after successful front-end profile updates, preserving existing edit and redirect behavior.
Use `instanceof` for fixed-class object checks, preserving existing validation behavior without passing strings to `is_a()`.
Guard mixed global values before dynamic `is_a()` checks, preserving fallback behavior for invalid globals.
In trunk, for 2.7.
See #3783.
|
| [6839]
|
johnjamesjacoby
|
General: Bump to RC6, and related unimpactful changes
* Docs & whitespace
* Update packages
* Update stable tag
* Add changelog section for 2.6 (TBD)
|
| [6371]
|
netweb
|
General: Following [6366] use a single blank line for end-of-file extras templates.
See #3078.
|
| [6361]
|
netweb
|
General: Improve verbiage for closed forum and closed topic template notices.
This changeset also adds a template notice to the reply form noting that the forum you're posting to is closed to new content.
Props @SergeyBiryukov.
Fixes #3076.
See also #2353-meta.
|
| [6554]
|
johnjamesjacoby
|
General: Introduce `bbp_pre_handle_404()` to handle 404 overrides.
This only introduces the function for now. I'll go through and check all of the conditions next.
See #3047.
|
| [6627]
|
johnjamesjacoby
|
General: Make sure object `_get_` functions reach intended filters.
This retains existing behavior of bailing early and returning `null` if there is a `post_type` mismatch. Other similar functions would pass the `null` value through to the filter. These may do that eventually, but let's get these filters working first.
Fixes #3130.
|
| [6284]
|
johnjamesjacoby
|
General: Remove `()` around `require` construct calls, and breathing room around some `!` usages.
|
| [6366]
|
johnjamesjacoby
|
General: Remove end-of-file `?>` tags from extra templates.
These templates are theme drop-ins, and apparently were missed in previous clean-up efforts.
Props milindmore22. Fixes #3078.
|
| [6113]
|
netweb
|
General: Set the default return to an empty array in `$posts_query->get()` in `bbp_pre_get_posts_normalize_forum_visibility()`
This changeset fixes PHP 7.1 warnings `[] operator not supported for strings` due to `WP_Query:get()` defaulting to returning an empty string if the requested key isn't set. However, you can pass a default return value. This commit sets the default return to an empty array.
Props thebrandonallen.
Fixes #2987.
|
| [6417]
|
netweb
|
General: Set the default return to an empty array in `$posts_query->get()` in `bbp_pre_get_posts_normalize_forum_visibility()`
This changeset fixes PHP 7.1 warnings `[] operator not supported for strings` due to `WP_Query:get()` defaulting to returning an empty string if the requested key isn't set. However, you can pass a default return value. This commit sets the default return to an empty array.
Props thebrandonallen.
See #2987.
Merges [6113] to the 2.5 branch.
|
| [6437]
|
johnjamesjacoby
|
General: Tidying from looking into #2876.
|
| [6691]
|
netweb
|
General: Update changelog date format in `readme.txt`
This changeset is a follow up to [6689].
See https://wordpress.slack.com/archives/C02RQBYSJ/p1505079124000051
|
| [5684]
|
johnjamesjacoby
|
General: Use `sanitize_text_field()` in lieu of old-bbPress style pre-escaping technique.
|
| [7054]
|
johnjamesjacoby
|
General: add support for `include` attribute in `bbp_dropdown()`.
Props imath. For 2.6.4, branches/2.6.
|
| [7055]
|
johnjamesjacoby
|
General: add support for `include` attribute in `bbp_dropdown()`.
Props imath. For 2.7, trunk.
|
| [7053]
|
johnjamesjacoby
|
General: fix a few typos.
Props ankitmaru, mukesh27. Fixes #3312, #3313, #3315. For 2.7, trunk.
|
| [7056]
|
netweb
|
General: fix a few typos.
Props passoniate, wpamitkumar, sharaz.
Fixes #3308, #3316, #3317, #3319, #3323.
|
| [6272]
|
johnjamesjacoby
|
General: hyphenate "meta-box" in documentation to sooth spell-checkers.
|