| [8073]
|
johnjamesjacoby
|
Topics: Redirect merged topic URLs.
Move the source topic's current and historical old-slug aliases to the destination topic during a merge. Preserve existing destination aliases and remove stale aliases from the source after it becomes a reply so WordPress can redirect prior topic URLs to the merged discussion.
Rely on the existing old-slug visibility filter to prevent redirects when the destination is not readable.
Add regression coverage for current, historical, and existing destination slugs through the complete WordPress redirect behavior.
In branches/2.6, for 2.6.21.
Props arielmeadow, netweb.
See #2329.
|
| [8072]
|
johnjamesjacoby
|
Topics: Redirect merged topic URLs.
Move the source topic's current and historical old-slug aliases to the destination topic during a merge. Preserve existing destination aliases and remove stale aliases from the source after it becomes a reply so WordPress can redirect prior topic URLs to the merged discussion.
Rely on the existing old-slug visibility filter to prevent redirects when the destination is not readable.
Add regression coverage for current, historical, and existing destination slugs through the complete WordPress redirect behavior.
In trunk, for 2.7.
Props arielmeadow, netweb.
Fixes #2329.
|
| [8071]
|
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 branches/2.6, for 2.6.21.
Props terresquall, noruzzaman.
Fixes #3637.
|
| [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.
|
| [8069]
|
johnjamesjacoby
|
Topics: Reuse registered forum visibilities.
Use the existing forum-visibility helper when validating old-slug redirect destinations instead of repeating the three default statuses. This keeps redirect access checks aligned with filtered forum visibility registrations.
Add regression coverage for filtered forum visibilities.
In branches/2.6, for 2.6.21.
See #3752.
|
| [8068]
|
johnjamesjacoby
|
Topics: Reuse registered forum visibilities.
Use the existing forum-visibility helper when validating old-slug redirect destinations instead of repeating the three default statuses. This keeps redirect access checks aligned with filtered forum visibility registrations.
Add regression coverage for filtered forum visibilities.
In trunk, for 2.7.
See #3752.
|
| [8067]
|
johnjamesjacoby
|
Topics: Stop unreadable old-slug redirects.
Prevent WordPress from redirecting old topic slugs to topics or parent forums the current visitor cannot read. Preserve valid topic redirects and leave other post types unchanged.
Add regression coverage for public, pending, spam, and hidden-forum topics, including the underlying WordPress redirect behavior.
In branches/2.6, for 2.6.21.
Fixes #3752.
See #2329.
|
| [8066]
|
johnjamesjacoby
|
Topics: Stop unreadable old-slug redirects.
Prevent WordPress from redirecting old topic slugs to topics or parent forums the current visitor cannot read. Preserve valid topic redirects and leave other post types unchanged.
Add regression coverage for public, pending, spam, and hidden-forum topics, including the underlying WordPress redirect behavior.
In trunk, for 2.7.
Fixes #3752.
See #2329.
|
| [8065]
|
johnjamesjacoby
|
Canonical: Stop guessing incomplete route roots.
Prevent WordPress from redirecting incomplete bbPress route roots to similarly named posts. Compare the normalized request with the configured topic, topic-tag, reply, user, and view roots, and expose those roots through a filterable helper for integrations.
Normalize nearby @since annotations and make the revision audit fixer retain the required bbPress marker.
Add regression coverage for configured, custom, filtered, child, and similar route slugs, including the underlying WordPress redirect behavior.
In branches/2.6, for 2.6.21.
Fixes #3751.
|
| [8064]
|
johnjamesjacoby
|
Canonical: Stop guessing incomplete route roots.
Prevent WordPress from redirecting incomplete bbPress route roots to similarly named posts. Compare the normalized request with the configured topic, topic-tag, reply, user, and view roots, and expose those roots through a filterable helper for integrations.
Normalize nearby @since annotations and make the revision audit fixer retain the required bbPress marker.
Add regression coverage for configured, custom, filtered, child, and similar route slugs, including the underlying WordPress redirect behavior.
In trunk, for 2.7.
Fixes #3751.
|
| [8063]
|
johnjamesjacoby
|
BuddyPress: Preserve group topic pagination.
Resolve the group topic independently of the requested reply page so later reply pages do not offset the single matching topic. This preserves exact slug matching for invalid routes while leaving the nested reply query on the requested page.
Add regression coverage for first, later, out-of-range, missing, empty, and invalid group topic routes.
In branches/2.6, for 2.6.21.
Props lmstearn.
Fixes #3750.
|
| [8062]
|
johnjamesjacoby
|
BuddyPress: Preserve group topic pagination.
Resolve the group topic independently of the requested reply page so later reply pages do not offset the single matching topic. This preserves exact slug matching for invalid routes while leaving the nested reply query on the requested page.
Add regression coverage for first, later, out-of-range, missing, empty, and invalid group topic routes.
In trunk, for 2.7.
Props lmstearn.
Fixes #3750.
|
| [8061]
|
johnjamesjacoby
|
Build/Test: Plan backport revision annotations.
Allow the @since audit helper to record an immediate maintenance-branch revision in trunk while binding the plan to the reviewed canonical Subversion HEAD and maintenance version. Reject stale, mixed-version, and non-trunk plans so two-changeset landings do not require a later annotation correction.
In trunk, for 2.7.
|
| [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.
|
| [8058]
|
johnjamesjacoby
|
Common: Inherit forum password requirements.
Extend WordPress's post-password check to bbPress forums, topics, and replies so Core-rendered content respects password-protected ancestors. Reuse the existing ancestor lookup with a per-post re-entry guard to preserve exact protected-post IDs, password cookies, and third-party filter behavior.
Add regression coverage for archive and search loops, user roles, password cookies, and nested password checks.
In branches/2.6, for 2.6.21.
See #2453.
|
| [8057]
|
johnjamesjacoby
|
Common: Inherit forum password requirements.
Extend WordPress's post-password check to bbPress forums, topics, and replies so Core-rendered content respects password-protected ancestors. Reuse the existing ancestor lookup with a per-post re-entry guard to preserve exact protected-post IDs, password cookies, and third-party filter behavior.
Add regression coverage for archive and search loops, user roles, password cookies, and nested password checks.
In trunk, for 2.7.
|
| [8056]
|
johnjamesjacoby
|
Common: Correct child-count query annotations.
Record 2.6.21 and the canonical backport revision as the first shipped version for the indexed child-count queries and their SQL filter.
In trunk, for 2.7.
See #3749.
|
| [8055]
|
johnjamesjacoby
|
Common: Avoid unindexed child-count queries.
Use indexed post-parent relationships when counting forum and topic children instead of scanning unindexed relationship metadata. Preserve the metadata path for unknown parent types, and add a filter for replacing the final prepared query.
This prevents reply deletion and repair recounts from repeatedly scanning large postmeta relationship sets while preserving existing count caches and result filters.
In branches/2.6, for 2.6.21.
Fixes #3749.
|
| [8054]
|
johnjamesjacoby
|
Common: Avoid unindexed child-count queries.
Use indexed post-parent relationships when counting forum and topic children instead of scanning unindexed relationship metadata. Preserve the metadata path for unknown parent types, and add a filter for replacing the final prepared query.
This prevents reply deletion and repair recounts from repeatedly scanning large postmeta relationship sets while preserving existing count caches and result filters.
In trunk, for 2.7.
See #3749.
|
| [8053]
|
johnjamesjacoby
|
Tests: Query forum metadata by subtype.
Update the hidden-count registration test to inspect the forum post subtype after count metadata was scoped to bbPress post types.
In branches/2.6, for 2.6.21.
See #3436.
|
| [8052]
|
johnjamesjacoby
|
Tests: Protect ordinary REST post updates.
Add regression coverage ensuring subtype-scoped bbPress count metadata does not appear in ordinary post responses or block round-trip REST updates.
In branches/2.6, for 2.6.21.
See #3436.
|
| [8051]
|
johnjamesjacoby
|
Meta: Scope count metadata to bbPress post types.
Register forum and topic count metadata for their corresponding post subtypes so bbPress keys are not associated with ordinary posts or unrelated custom post types.
In branches/2.6, for 2.6.21.
Props r-a-y, terresquall.
See #3436.
See #3588.
|
| [8050]
|
johnjamesjacoby
|
Tests: Protect ordinary REST post updates.
Add regression coverage ensuring subtype-scoped bbPress count metadata does not appear in ordinary post responses or block round-trip REST updates.
In trunk, for 2.7.
See #3436.
|
| [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.
|
| [8048]
|
johnjamesjacoby
|
Forums: Avoid unbounded freshness queries.
Replace full public topic-ID result sets with scalar topic and reply lookups when recalculating forum last-reply and last-active metadata. Preserve the legacy path for extensions that filter topic membership.
This keeps freshness exact without loading every public topic ID into PHP, and avoids the fixed candidate limit used by the WordPress.org workaround.
In branches/2.6, for 2.6.21.
Props bor0, tharsheblows.
Fixes #2915.
See #3117.
|
| [8047]
|
johnjamesjacoby
|
Forums: Avoid unbounded freshness queries.
Replace full public topic-ID result sets with scalar topic and reply lookups when recalculating forum last-reply and last-active metadata. Preserve the legacy path for extensions that filter topic membership.
This keeps freshness exact without loading every public topic ID into PHP, and avoids the fixed candidate limit used by the WordPress.org workaround.
In trunk, for 2.7.
Props bor0, tharsheblows.
Fixes #2915.
See #3117.
|
| [8046]
|
johnjamesjacoby
|
Feeds: Remove shortcodes from WordPress feeds.
Omit registered shortcodes from topic and reply content when WordPress renders Core-generated feeds. This prevents allow-listed shortcodes from executing in feeds while preserving surrounding content and existing behavior outside feeds.
Add regression coverage for topic and reply content rendered by WordPress feeds.
In branches/2.6, for 2.6.21.
Props bor0.
Fixes #3747.
|
| [8045]
|
johnjamesjacoby
|
Feeds: Remove shortcodes from WordPress feeds.
Omit registered shortcodes from topic and reply content when WordPress renders Core-generated feeds. This prevents allow-listed shortcodes from executing in feeds while preserving surrounding content and existing behavior outside feeds.
Add regression coverage for topic and reply content rendered by WordPress feeds.
In trunk, for 2.7.
Props bor0.
See #3747.
|
| [8044]
|
johnjamesjacoby
|
Users: Reset singular state on user routes.
WordPress can set page or post singular flags before bbPress parses a user route when native singular query variables are also present. Clear those flags after resolving the user so the request is not treated as a singular post without a queried object.
Add regression coverage for page IDs, page names, post IDs, and post names.
In branches/2.6, for 2.6.21.
Props bor0.
Fixes #3748.
|
| [8043]
|
johnjamesjacoby
|
Users: Reset singular state on user routes.
WordPress can set page or post singular flags before bbPress parses a user route when native singular query variables are also present. Clear those flags after resolving the user so the request is not treated as a singular post without a queried object.
Add regression coverage for page IDs, page names, post IDs, and post names.
In trunk, for 2.7.
Props bor0.
See #3748.
|
| [8042]
|
johnjamesjacoby
|
Tests: Run infrastructure coverage in CI.
Execute the existing GitHub mirror and Plugin SVN release-helper suites in the Lint workflow so synchronization and deployment safeguards remain covered by automated testing.
In trunk, for 2.7.
|
| [8041]
|
johnjamesjacoby
|
Docs: Record pending-post date revisions.
Add canonical Subversion revisions to the pending-post date annotations so the automated revision audit can verify their origins.
In branches/2.6, for 2.6.21.
See #3744.
|
| [8040]
|
johnjamesjacoby
|
Docs: Record pending-post date revisions.
Add canonical Subversion revisions to the pending-post date annotations so the automated revision audit can verify their origins.
In trunk, for 2.7.
See #3744.
|
| [8039]
|
johnjamesjacoby
|
Feeds: Return a 404 for unregistered views.
Remove the invalid view query variable and set the request error when a feed targets an unregistered view. This prevents the request from falling through to normal WordPress feed handling after bbPress declines to render the view feed.
Add regression coverage for the request variables returned by the feed trap.
In branches/2.6, for 2.6.21.
Fixes #3745.
|
| [8038]
|
johnjamesjacoby
|
Moderation: Preserve pending post dates.
Set the GMT date when WordPress inserts pending topics and replies so later status-only updates do not replace the original post date. This moves the WordPress.org safeguard into bbPress and keeps REST editing behavior consistent with the stored date invariant.
Add regression coverage for topic and reply status changes and update the existing REST expectations.
In branches/2.6, for 2.6.21.
Fixes #3744.
|
| [8037]
|
johnjamesjacoby
|
Feeds: Return a 404 for unregistered views.
Remove the invalid view query variable and set the request error when a feed targets an unregistered view. This prevents the request from falling through to normal WordPress feed handling after bbPress declines to render the view feed.
Add regression coverage for the request variables returned by the feed trap.
In trunk, for 2.7.
See #3745.
|
| [8036]
|
johnjamesjacoby
|
Moderation: Preserve pending post dates.
Set the GMT date when WordPress inserts pending topics and replies so later status-only updates do not replace the original post date. This moves the WordPress.org safeguard into bbPress and keeps REST editing behavior consistent with the stored date invariant.
Add regression coverage for topic and reply status changes and update the existing REST expectations.
In trunk, for 2.7.
See #3744.
|
| [8035]
|
johnjamesjacoby
|
Tools: Avoid no-op mirror deployments.
Run scheduled mirror validation in a credential-free job and enter the protected environment only when validated refs need synchronization. Preserve explicit dry-run behavior and exact revalidation before loading the deploy key, while preventing unchanged schedules from creating deployment notifications.
In trunk, for 2.7.
|
| [8034]
|
johnjamesjacoby
|
Tests: Normalize randomized Gravatar hosts.
Normalize legacy numbered Gravatar hosts through the get_avatar_url filter during PHPUnit tests. This keeps repeated helper and output calls comparable across supported WordPress versions without changing production output.
In branches/2.6, for 2.6.21.
|
| [8033]
|
johnjamesjacoby
|
Tests: Normalize randomized Gravatar hosts.
Normalize legacy numbered Gravatar hosts through the get_avatar_url filter during PHPUnit tests. This keeps repeated helper and output calls comparable across supported WordPress versions without changing production output.
In trunk, for 2.7.
|
| [8032]
|
johnjamesjacoby
|
Docs: Record the logout-link revision.
Add the canonical Subversion revision to the 2.7.0 annotations for the logout-link classes parameter so the revision audit can verify its history.
In trunk, for 2.7.
|
| [8031]
|
johnjamesjacoby
|
Tools: Add verified GitHub mirror synchronization.
Add a fail-closed validator and scheduled workflow that independently compare native Git objects with canonical Subversion before updating GitHub. Support verified fast-forward branch updates, canonical branch creation, immutable tag creation, and exact ref deletion only after a recorded canonical directory deletion.
Document the security model, credential and ruleset requirements, initial backfill procedure, and standing authorization boundaries. Add focused coverage for identity resolution, history and tree validation, ref classification, manifest replay, dry-run behavior, and atomic push safeguards.
In trunk, for 2.7.
|
| [8030]
|
johnjamesjacoby
|
Build: Tag bbPress 2.6.20.
|
| [8029]
|
johnjamesjacoby
|
Release: Record bbPress 2.6.20 on trunk.
Move the shipped maintenance changes from Unreleased into the dated 2.6.20 notes while leaving 2.7-only work in progress. Update the stable tag and upgrade notice without changing trunk's development or database versions.
In trunk, for 2.7.
|
| [8028]
|
johnjamesjacoby
|
Release: Prepare bbPress 2.6.20.
Update the version metadata and stable tag, record the curated 2.6.20 changelog and upgrade notice, and retain the existing WordPress, PHP, and database compatibility boundaries.
In branches/2.6, for 2.6.20.
|
| [8027]
|
johnjamesjacoby
|
BuddyPress: Scope group topic routes to requested topics.
Use non-singular post-name query arguments when resolving BuddyPress group topic routes and titles so an absent or invalid slug remains part of each lookup. This prevents missing, cross-forum, and non-public topic routes from reusing the first visible topic in the group forum.
Add coverage for empty and missing slugs while preserving the existing group-topic visibility coverage.
In branches/2.6, for 2.6.20.
Fixes #3743.
|
| [8026]
|
johnjamesjacoby
|
BuddyPress: Scope group topic routes to requested topics.
Use non-singular post-name query arguments when resolving BuddyPress group topic routes and titles so an absent or invalid slug remains part of each lookup. This prevents missing, cross-forum, and non-public topic routes from reusing the first visible topic in the group forum.
Add coverage for empty and missing slugs while preserving the existing group-topic visibility coverage.
In trunk, for 2.7.
Fixes #3743.
|
| [8025]
|
johnjamesjacoby
|
BuddyPress: Preserve profile engagement targets.
Set the displayed member query context before dispatching BuddyPress profile favorite and subscription actions. Use the dedicated displayed-user resolver when those handlers run on profile views so a privileged control cannot modify the logged-in user's engagement instead.
Add cross-profile regression coverage for favorite and subscription removal, update the changelog, and record the missing canonical revision for the BuddyPress 15 SQL-clauses filter.
In branches/2.6, for 2.6.20.
Fixes #3742.
|
| [8024]
|
johnjamesjacoby
|
BuddyPress: Preserve profile engagement targets.
Set the displayed member query context before dispatching BuddyPress profile favorite and subscription actions. Use the dedicated displayed-user resolver when those handlers run on profile views so a privileged control cannot modify the logged-in user's engagement instead.
Add cross-profile regression coverage for favorite and subscription removal, update the changelog, and record the missing canonical revision for the BuddyPress 15 SQL-clauses filter.
In trunk, for 2.7.
Fixes #3742.
See #3741.
|
| [8023]
|
johnjamesjacoby
|
BuddyPress: Use the current activity SQL filter.
Register the SQL-clauses filter on BuddyPress 15 and newer, adapting its WHERE conditions through the existing forum visibility logic. Continue using the legacy where-conditions filter on earlier BuddyPress releases.
Add regression coverage for version-appropriate filter registration while preserving restricted and password-protected activity handling.
In branches/2.6, for 2.6.20.
Fixes #3741.
|
| [8022]
|
johnjamesjacoby
|
BuddyPress: Use the current activity SQL filter.
Register the SQL-clauses filter on BuddyPress 15 and newer, adapting its WHERE conditions through the existing forum visibility logic. Continue using the legacy where-conditions filter on earlier BuddyPress releases.
Add regression coverage for version-appropriate filter registration while preserving restricted and password-protected activity handling.
In trunk, for 2.7.
Fixes #3741.
|
| [8021]
|
johnjamesjacoby
|
Moderation: Preserve forms after validation errors.
Treat the action query argument independently of request method so topic merge, topic split, and reply move pages remain selected when their forms POST and validation returns an error. Preserve sanitization, strict matching, legacy actions, and POST-action request gating.
Add regression coverage for current and legacy actions during GET and POST requests.
In branches/2.6, for 2.6.20.
Fixes #3740.
|
| [8020]
|
johnjamesjacoby
|
Moderation: Preserve forms after validation errors.
Treat the action query argument independently of request method so topic merge, topic split, and reply move pages remain selected when their forms POST and validation returns an error. Preserve sanitization, strict matching, legacy actions, and POST-action request gating.
Add regression coverage for current and legacy actions during GET and POST requests.
In trunk, for 2.7.
Fixes #3740.
|
| [8019]
|
johnjamesjacoby
|
Tests: Cover unregistered view shortcodes.
Add shortcode-level regression coverage proving a registered topic view renders its selected topic while an unregistered view does not fall back to the unrestricted topic query.
In branches/2.6, for 2.6.20.
Props bor0.
From https://github.com/bbpress/bbPress/pull/44.
See #3718.
|
| [8018]
|
johnjamesjacoby
|
Tests: Cover unregistered view shortcodes.
Add shortcode-level regression coverage proving a registered topic view renders its selected topic while an unregistered view does not fall back to the unrestricted topic query.
In trunk, for 2.7.
Props bor0.
See #3718.
From https://github.com/bbpress/bbPress/pull/44.
|
| [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.
|
| [8015]
|
johnjamesjacoby
|
Tests: Restore reply query state after visibility tests.
Reset the main query after each reply visibility test so its post type does not leak into later pagination and feed URL assertions.
In branches/2.6, for 2.6.20.
|
| [8014]
|
johnjamesjacoby
|
Tests: Restore reply query state after visibility tests.
Reset the main query after each reply visibility test so its post type does not leak into later pagination and feed URL assertions.
In trunk, for 2.7.
|
| [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.
|
| [8011]
|
johnjamesjacoby
|
Attachments: Centralize visibility handling.
Move attachment parent resolution and visibility checks into common/attachments.php. Apply the shared policy to front-end requests, canonical redirects, oEmbed responses, and REST attachment reads while preserving stricter oEmbed password behavior.
Normalize numeric attachment query variables and retained query objects so canonical redirects cannot bypass the parent visibility checks.
In branches/2.6, for 2.6.20.
|
| [8010]
|
johnjamesjacoby
|
Attachments: Centralize visibility handling.
Move attachment parent resolution and visibility checks into common/attachments.php. Apply the shared policy to front-end requests, canonical redirects, oEmbed responses, and REST attachment reads while preserving stricter oEmbed password behavior.
Normalize numeric attachment query variables and retained query objects so canonical redirects cannot bypass the parent visibility checks.
In trunk, for 2.7.
|
| [8009]
|
johnjamesjacoby
|
Engagements: Validate strategy values.
Prevent malformed stored and filtered values from causing startup failures. Reject the empty base implementation while preserving existing third-party strategy classes, and fall back to the meta strategy when validation fails.
In branches/2.6, for 2.6.20.
Fixes #3739.
|
| [8008]
|
johnjamesjacoby
|
Engagements: Validate strategy values.
Prevent malformed stored and filtered values from causing startup failures. Reject the empty base implementation while preserving existing third-party strategy classes, and fall back to the meta strategy when validation fails.
In trunk, for 2.7.
See #3739.
|
| [8007]
|
johnjamesjacoby
|
Tests: Cover request action helpers.
Add direct coverage for POST and GET action sanitization, strict matching, request-method gating, malformed values, and global-state cleanup.
In trunk, for 2.7.
See #3706.
|
| [8006]
|
johnjamesjacoby
|
Tests: Group core hook assertions by behavior.
Replace exhaustive action registration coverage with focused assertions for meaningful action and filter contracts. Group related hooks by behavior and verify priorities and accepted arguments without mirroring the source files or tracking fluctuating registration counts.
In trunk, for 2.7.
See #3706.
|
| [8005]
|
johnjamesjacoby
|
Tests: Cover core action registrations.
Add data-driven coverage for every action in core/actions.php, including callbacks, priorities, and accepted argument counts. Guard the provider against source drift and name each data set for useful failures.
In trunk, for 2.7.
See #3706.
|
| [8004]
|
johnjamesjacoby
|
Rewrite Rules: Pass rewrite objects to component callbacks.
Wrap the WordPress rewrite object in the argument array required by do_action_ref_array(). This allows component-specific rewrite callbacks to run without PHP errors and preserves the documented reference semantics.
Add regression coverage for the component-specific rewrite action.
In branches/2.6, for 2.6.20.
Fixes #3738.
|
| [8003]
|
johnjamesjacoby
|
Rewrite Rules: Pass rewrite objects to component callbacks.
Wrap the WordPress rewrite object in the argument array required by do_action_ref_array(). This allows component-specific rewrite callbacks to run without PHP errors and preserves the documented reference semantics.
Add regression coverage for the component-specific rewrite action.
In trunk, for 2.7.
See #3738.
|
| [8002]
|
johnjamesjacoby
|
Embeds: Protect attachment metadata.
Resolve attachments to their bbPress parent before applying the existing oEmbed visibility checks. This prevents attachment titles and author details from being exposed when the parent forum, topic, reply, or forum ancestor is private, hidden, or password protected.
Add regression coverage for attachments across direct and inherited forum visibility.
In branches/2.6, for 2.6.20.
|
| [8001]
|
johnjamesjacoby
|
Embeds: Protect attachment metadata.
Resolve attachments to their bbPress parent before applying the existing oEmbed visibility checks. This prevents attachment titles and author details from being exposed when the parent forum, topic, reply, or forum ancestor is private, hidden, or password protected.
Add regression coverage for attachments across direct and inherited forum visibility.
In trunk, for 2.7.
|
| [8000]
|
johnjamesjacoby
|
Build/Test Tools: Ignore PHPUnit result caches.
Running alot of tests leaves a `.phpunit.result.cache` file in the repository root. Ignore the generated cache so it does not appear as an untracked file.
In trunk, for 2.7.
|
| [7999]
|
johnjamesjacoby
|
Tests: Cover lifecycle action wrappers.
Add data-driven coverage for bbPress lifecycle hooks, argument forwarding, and the deprecated rewrite-rule wrapper. Isolate each hook from registered callbacks and restore its original state after every assertion.
In trunk, for 2.7.
See #3706.
|
| [7998]
|
johnjamesjacoby
|
Tests: Improve environment compatibility.
Avoid the deprecated E_STRICT constant, use the supported storage engine setting on current MySQL and MariaDB versions, and declare test properties before assignment.
In branches/2.6, for 2.6.20.
See #3706.
|
| [7997]
|
johnjamesjacoby
|
Tests: Avoid deprecated reflection calls.
Call setAccessible() only on PHP versions that still require it. Reflection can access non-public members directly on PHP 8.1 and later, and PHP 8.5 deprecates the redundant call.
In branches/2.6, for 2.6.20.
See #3706.
|
| [7996]
|
johnjamesjacoby
|
Tests: Avoid deprecated reflection calls.
Call setAccessible() only on PHP versions that still require it. Reflection can access non-public members directly on PHP 8.1 and later, and PHP 8.5 deprecates the redundant call.
In trunk, for 2.7.
See #3706.
|
| [7995]
|
johnjamesjacoby
|
Tests: Cover block registration.
Add direct coverage for registered metadata and shortcode mappings, hook setup, category filtering, render failures and callback forwarding, view data, and unknown localization keys. Correct malformed block coverage annotations.
In trunk, for 2.7.
See #3706.
|
| [7994]
|
johnjamesjacoby
|
Tests: Cover query-backed widgets.
Add direct coverage for Forum parent queries, Topic ordering and optional output, and Reply ordering and output variants. Verify empty result handling and original query arguments.
In trunk, for 2.7.
See #3706.
|
| [7993]
|
johnjamesjacoby
|
Tests: Cover simple widget output.
Add direct coverage for logged-out Login widget links, Views early returns and output, Search availability and template dispatch, and Statistics template dispatch.
In trunk, for 2.7.
See #3706.
|
| [7992]
|
johnjamesjacoby
|
Tests: Cover widget settings.
Add direct coverage for widget registration, option and settings filters, defaults, overrides, sanitized updates, and configuration forms.
In trunk, for 2.7.
See #3706.
|
| [7991]
|
johnjamesjacoby
|
Engagements: Correct cleanup return values.
Return true after the taxonomy strategy removes an object's relationships, matching the documented boolean contract. Count only successful legacy user-option removals so partial failures are reported instead of being masked.
Add regression coverage for successful taxonomy cleanup and partial legacy cleanup failures.
Merges [7988] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Fixes #3736.
|
| [7990]
|
johnjamesjacoby
|
Engagements: Normalize object IDs.
Normalize object IDs before strict legacy user-option lookups. This preserves numeric-string compatibility and prevents missed removals or redundant add attempts.
Add regression coverage for numeric-string removal.
Merges [7989] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Fixes #3737.
|
| [7989]
|
johnjamesjacoby
|
Engagements: Normalize object IDs.
Normalize object IDs before strict legacy user-option lookups. This preserves numeric-string compatibility and prevents missed removals or redundant add attempts.
Add regression coverage for numeric-string removal.
In trunk, for 2.7.
See #3737.
|
| [7988]
|
johnjamesjacoby
|
Engagements: Correct cleanup return values.
Return true after the taxonomy strategy removes an object's relationships, matching the documented boolean contract. Count only successful legacy user-option removals so partial failures are reported instead of being masked.
Add regression coverage for successful taxonomy cleanup and partial legacy cleanup failures.
In trunk, for 2.7.
See #3736.
|
| [7987]
|
johnjamesjacoby
|
Tests: Update moderation link action values.
Align the existing topic and reply link assertions with the collision-resistant action values introduced in [7985]. Legacy action compatibility remains covered by the moderation routing tests.
In trunk, for 2.7.
See #3365.
|
| [7986]
|
johnjamesjacoby
|
Moderation: Keep action values consistent.
Use the POST handler action names in topic merge, topic split, and reply move links so WordPress does not reject mismatched public query variables. Continue recognizing the legacy short GET values for backward compatibility, including BuddyPress group routes.
Merges [7985] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Props konnektiv, robin-w.
Fixes #3365.
|
| [7985]
|
johnjamesjacoby
|
Moderation: Keep action values consistent.
Use the POST handler action names in topic merge, topic split, and reply move links so WordPress does not reject mismatched public query variables. Continue recognizing the legacy short GET values for backward compatibility, including BuddyPress group routes.
In trunk, for 2.7.
Props konnektiv, robin-w.
See #3365.
|
| [7984]
|
johnjamesjacoby
|
Subscriptions: Separate legacy forum subscriptions.
Pass the subscription query context through the legacy user-option key mapper so forum queries read `_bbp_forum_subscriptions` instead of the topic-subscription option. This keeps forum and topic subscription queries isolated for sites using the pre-2.6 user strategy.
Add regression coverage for separate forum and topic subscription options.
Merges [7982] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Props Dermes.
Fixes #3401.
|
| [7983]
|
johnjamesjacoby
|
BuddyPress: Update activity after topic and reply edits.
Remove transient post type revision-support checks from BuddyPress activity updates. Front-end edits temporarily disable that support to avoid duplicate WordPress revisions, so the callbacks returned before updating existing activity. Preserve the global bbPress revision setting and add regression coverage for topics and replies.
Merges [7981] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Props michael8888, r-a-y.
Fixes #3328.
|
| [7982]
|
johnjamesjacoby
|
Subscriptions: Separate legacy forum subscriptions.
Pass the subscription query context through the legacy user-option key mapper so forum queries read `_bbp_forum_subscriptions` instead of the topic-subscription option. This keeps forum and topic subscription queries isolated for sites using the pre-2.6 user strategy.
Add regression coverage for separate forum and topic subscription options.
In trunk, for 2.7.
Props Dermes.
Fixes #3401.
|
| [7981]
|
johnjamesjacoby
|
BuddyPress: Update activity after topic and reply edits.
Remove transient post type revision-support checks from BuddyPress activity updates. Front-end edits temporarily disable that support to avoid duplicate WordPress revisions, so the callbacks returned before updating existing activity. Preserve the global bbPress revision setting and add regression coverage for topics and replies.
In trunk, for 2.7.
Props michael8888, r-a-y.
Fixes #3328.
|
| [7980]
|
johnjamesjacoby
|
AJAX: Use WordPress termination handlers.
Replace direct die() calls in the administration suggestion callbacks and common AJAX response helper with wp_die(). This preserves the existing response bodies while allowing custom AJAX death handlers to run.
Add regression coverage for the suggestion and JSON responses.
Merges [7979] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Props immeet94.
Fixes #3363.
|
| [7979]
|
johnjamesjacoby
|
AJAX: Use WordPress termination handlers.
Replace direct die() calls in the administration suggestion callbacks and common AJAX response helper with wp_die(). This preserves the existing response bodies while allowing custom AJAX death handlers to run.
Add regression coverage for the suggestion and JSON responses.
In trunk, for 2.7.
Props immeet94.
See #3363.
|
| [7978]
|
johnjamesjacoby
|
Forums/Replies: Share title validation.
Introduce bbp_validate_forum_title() and bbp_validate_reply_title(), and use them for new and edited forums and replies while preserving existing filters, error codes, optional reply titles, and accumulated bbPress errors.
Merges [7977] to the 2.6 branch.
In branches/2.6, for 2.6.20.
Fixes #3682.
|
| [7977]
|
johnjamesjacoby
|
Forums/Replies: Share title validation.
Introduce bbp_validate_forum_title() and bbp_validate_reply_title(), and use them for new and edited forums and replies while preserving existing filters, error codes, optional reply titles, and accumulated bbPress errors.
In trunk, for 2.7.
See #3682.
|
| [7976]
|
johnjamesjacoby
|
Tests: Avoid legacy KSES script expectations.
WordPress 7.2's HTML API-backed KSES parser removes disallowed script elements together with their contents, while earlier versions preserve the contents as text. Use an ordinary disallowed element for exact sanitization and slashing assertions, and verify script markup separately so the test covers both supported behaviors.
In trunk, for 2.7.
See #3706.
|
| [7975]
|
johnjamesjacoby
|
Widgets: Keep Login widget logout links readable.
Render the Login widget logout control as a normal link so theme widget-link styles do not conflict with generic button colors. Allow callers to choose logout-link classes while preserving the existing helper defaults and filter behavior.
In trunk, for 2.7.
Props jeherve.
Fixes #3322.
|
| [7974]
|
johnjamesjacoby
|
API - Moderation: Add forum link controls.
Add a forum-specific link threshold and toggle for topic and reply moderation. Inherit the WordPress Discussion limit until a forum value is saved, preserving existing behavior while allowing forums to use a different threshold.
In trunk, for 2.7.
Props r-a-y, codejp3.
Fixes #3352.
|