| [5166]
|
johnjamesjacoby
|
RTLove. Props netweb, alex-ye. Fixes #2385.
|
| [4621]
|
johnjamesjacoby
|
RTL improvements for pagination arrows and breadcrumb order. See #2124.
|
| [4619]
|
johnjamesjacoby
|
RTL CSS tweaks for search. See #1575.
|
| [3588]
|
johnjamesjacoby
|
RTL CSS fixes. Props ramiy. Fixes #1654.
|
| [7681]
|
johnjamesjacoby
|
REST API: Respect topic visibility for replies.
Require a readable parent topic before returning a reply through REST. Attachment responses inherit the same check, and topic and forum moderators retain access.
In trunk, for 2.7.
|
| [7682]
|
johnjamesjacoby
|
REST API: Respect topic visibility for replies.
Backport parent-topic read checks for REST reply and attachment responses while preserving authorized moderator access.
In branches/2.6, for 2.6.19.
|
| [7614]
|
johnjamesjacoby
|
REST API: Improve topic and reply edit checks.
Backport the REST update checks and regression coverage for topic and reply edits.
In 2.6 branch, for 2.6.19.
|
| [7613]
|
johnjamesjacoby
|
REST API: Improve topic and reply edit checks.
Apply bbPress posting rules consistently to REST updates and add regression coverage for compatible client request formats.
In trunk, for 2.7.
|
| [7504]
|
johnjamesjacoby
|
REST API: Enforce forum visibility for edits.
Backport current forum visibility and inherited access checks for topic and reply edit capabilities and REST updates. This keeps update, revision, and autosave authorization consistent with direct item responses.
Introduce a shared helper for user-specific restricted-forum checks and add regression coverage.
This is a backport of [7503] to the 2.6 branch.
In branches/2.6, for 2.6.16.
Props paulos__.
|
| [7503]
|
johnjamesjacoby
|
REST API: Enforce forum visibility for edits.
Apply current forum visibility and inherited access rules to topic and reply edit capabilities, and require the same permission before REST updates. This keeps update, revision, and autosave authorization consistent with direct item responses.
Introduce a shared helper for user-specific restricted-forum checks and add regression coverage.
In trunk, for 2.7.
Props paulos__.
|
| [7481]
|
johnjamesjacoby
|
REST API: Enforce forum visibility for content responses.
This change checks private and hidden forum access, including restricted ancestors, before returning forums, topics, replies, or their attachments through WordPress REST API endpoints.
In trunk, for 2.7.
Props winstoncrooker.
|
| [7482]
|
johnjamesjacoby
|
REST API: Enforce forum visibility for content responses.
This change checks private and hidden forum access, including restricted ancestors, before returning forums, topics, replies, or their attachments through WordPress REST API endpoints enabled by extensions.
In branches/2.6, for 2.6.16.
Props winstoncrooker.
|
| [6510]
|
johnjamesjacoby
|
RC 1, not 3. See r6509.
|
| [2898]
|
johnjamesjacoby
|
Quick post_id sanity check in anonymous_metabox.
|
| [6685]
|
johnjamesjacoby
|
Query: use `NOT IN` strategy in `bbp_get_all_child_ids()`
This ensures that only specific post-statuses are explicitly excluded from "all child IDs" type queries, where previously post-statuses needed to be specifically defined.
See #3128. Fixes #3140. 2.5 branch, for 2.5.14.
|
| [6643]
|
johnjamesjacoby
|
Query: use `NOT IN` strategy in `bbp_get_all_child_ids()`
This ensures that only specific post-statuses are explicitly excluded from "all child IDs" type queries, where previously post-statuses needed to be specifically defined.
See #3128.
|
| [4899]
|
johnjamesjacoby
|
Query clean-up:
* Move implode() calls out of queries and replace with variables.
* Audit IN queries and implode/explode for wp_parse_id_list() usages.
* See #2331.
|
| [6607]
|
johnjamesjacoby
|
Queries: `nopaging` audit.
* In r6506 the `nopaging` query argument was added to various queries to avoid paginating results when it wasn't necessary. This resulted in a few queries (widgets mainly) not obeying their specific settings.
* In #3123, other inconsistencies in our query arguments were uncovered, triggering the need to audit our query usages and equalize them once again.
This change brings all queries back to par with one another, specifically in regards to `posts_per_page => -1` style queries, and queries where filters can be suppressed and meta/term caches should not be primed.
It also groups together the `get_user_object_ids` functions. These are now unused in bbPress proper, though were previously useful before the engagements API was in place. These queries are considered too inefficient to rely upon in large-scale applications, but are included to provide filterable wrappers should someone need them, or should we need to bring them back later.
Props thebrandonallen. Fixes #3123.
|
| [6612]
|
johnjamesjacoby
|
Queries: Use new `object_type` over old `post_type`.
When `bbp_get_user_object_ids()` was introduced, some helpers did not get updated to use the new argument key. This change fixes that, and fixes failing tests in the process.
Note that these tests are testing new & unused helper functions for 2.6, so it's unlikely any noticable problems occurred from these being broken.
|
| [6219]
|
johnjamesjacoby
|
Queries: Use `no_found_rows` where relevant.
This prevents `SQL_CALC_FOUND_ROWS` usages in places where it is not used.
Fixes #2972.
|
| [6434]
|
johnjamesjacoby
|
Queries: Update `orderby` clauses of last-id queries to ensure more accurate results, specifically for imported forums and posts where IDs and `post_date` columns might be inverted.
Also update a few tests to be less cranky with exact array results.
Props thebrandonallen. Fixes #3108.
|
| [6289]
|
johnjamesjacoby
|
Queries: Return empty array if no parent ID or no post-type are passed.
See #3059.
|
| [5820]
|
johnjamesjacoby
|
Queries: Remove `post_parent__in` query-parameter filter.
This commit removes the `bbp_query_post_parent__in()` filter that was introduced in r2996, and uses WordPress core's built in query parameters introduced in #WP11056.
Fixes #2832.
|
| [6503]
|
johnjamesjacoby
|
Queries: Remove `author_name` query variable setting when viewing profiles.
This is a relic from the days when profiles included blog posts (2010 era.)
This should be safe to remove, based on the following assessments:
* Blog posts are no longer included in profiles
* Setting `author_name` or `author` query-vars will cause `is_author()` to be set to `true`
* `is_author()` should not return true in the context of bbPress profile pages
* The `author_name` query-var is not used again later in bbPress - the `displayed_user` variable is instead
See https://github.com/woocommerce/woocommerce/issues/15508 for additional context.
|
| [8448]
|
johnjamesjacoby
|
Queries: Describe pagination query fields.
bbPress stores page numbers, page size, and pagination links on WP_Query instances for topic, reply, and search loops. Document those fields for PHPStan and remove the matching baseline entries. WordPress returns null when there is only one page, so correct the pagination helper PHPDoc to reflect that case.
In trunk, for 2.7.
See #3794.
|
| [6410]
|
johnjamesjacoby
|
Queries: Deprecate `bbp_query_post_parent__in()` in the 2.5 branch.
4.7 is the minimum WordPress version, so we can support `post_parent__not_in` directly.
See #2832.
|
| [5858]
|
johnjamesjacoby
|
Queries: Clean up post status concatenation in 2 queries.
This changeset moves array of "hidden" type post-statuses into their own variable to better match existing usages.
Fixes #2826.
|
| [4194]
|
johnjamesjacoby
|
Queries:
* Revert r4183 as it's still needed for shortcodes and _is_ functions.
* Fix incorrect ob_start() method in display_breadcrumb().
|
| [4183]
|
johnjamesjacoby
|
Queries:
* Remove query name settings from BBP_Shortcodes.
* No longer used.
|
| [4031]
|
johnjamesjacoby
|
Queries:
* Allow bbp_is_query_name() to accept empty values, similar to get_query_var().
* See #1865.
|
| [3333]
|
johnjamesjacoby
|
Put main actions into a loop. Fix incorrect filter on bbp_edit ID. Rename main register_textdomain function back to load_textdomain to match existing conventions.
|
| [5275]
|
johnjamesjacoby
|
Put back root files from previous reorg revert. See #2542.
|
| [4652]
|
johnjamesjacoby
|
Put a more positive spin on our usage of magic methods in the bbPress class.
|
| [5575]
|
netweb
|
PunBB importer: Include Subscribed Forums and Subscribed Topics
Props netweb. See #2668
|
| [5180]
|
netweb
|
Protect topic and reply author link calls from non-existant users. Props jondavidjohn. Fixes #2381
|
| [2536]
|
chrishajer
|
Properly update version in functions.bb-meta.php
|
| [2739]
|
johnjamesjacoby
|
Properly prepare bb_get_forum. Fixes #1414. Props nbachiyski.
|
| [2774]
|
johnjamesjacoby
|
Proper version compare check.
|
| [3307]
|
johnjamesjacoby
|
Proper singular/plural bases for capability_type in forum/topic/reply CPT's.
|
| [7181]
|
johnjamesjacoby
|
Profiles: fix incorrect target for "locale" label.
This commit fixes a copy & paste error, where the "locale" label was targeting the "url" input instead of the language select.
In trunk for 2.7.0. See #3387.
|
| [7182]
|
johnjamesjacoby
|
Profiles: fix incorrect target for "locale" label.
This commit fixes a copy & paste error, where the "locale" label was targeting the "url" input instead of the language select.
In branches/2.6 for 2.6.7. Fixes #3387.
|
| [3665]
|
johnjamesjacoby
|
Prevent shortcodes from stomping globals too early. Fixes #1717.
|
| [2821]
|
johnjamesjacoby
|
Prevent possible variable not set notice (trunk)
|
| [2820]
|
johnjamesjacoby
|
Prevent possible variable not set notice (branch)
|
| [3580]
|
johnjamesjacoby
|
Prevent possible debug notice in bbp_get_breadcrumb()
|
| [3286]
|
johnjamesjacoby
|
Prevent poisoning of forum/topic/reply data when marking posts as trash/spam. Fixes issue where anonymous user data would get purged when post status was changed from an admin area post-row.
|
| [5608]
|
johnjamesjacoby
|
Prevent notices and warnings when template stack is empty. Fixes #2749.
|
| [5042]
|
johnjamesjacoby
|
Prevent nested shortcodes if used inside bbPress post_content. Reverts r4976. See #2343.
|
| [3076]
|
johnjamesjacoby
|
Prevent login from hi-jacking wp-login.php
|
| [3070]
|
johnjamesjacoby
|
Prevent hr styling from applying to admin area
|
| [3600]
|
johnjamesjacoby
|
Prevent guest users from editing topics and replies if anonymous posting is active. See #1678. (2.1)
|
| [3602]
|
johnjamesjacoby
|
Prevent guest users from editing topics and replies if anonymous posting is active. See #1678. (2.0)
|
| [3259]
|
johnjamesjacoby
|
Prevent forum root in breadcrumb if viewing a page in place of the forum archive.
|
| [3125]
|
johnjamesjacoby
|
Prevent forum and topic ID's from being poisoned by functions that attempt to make calculations out of turn. Also prevent incorrect assignment of parent topic and forum ID's when posting from admin area. Fixes #1433.
|
| [2915]
|
johnjamesjacoby
|
Prevent fatal error on WordPress 3.0 installs from $wp_query not being setup before this loop is created.
|
| [5393]
|
johnjamesjacoby
|
Prevent empty array value in `bbp_get_reply_ancestors()`. See #2617.
|
| [2959]
|
johnjamesjacoby
|
Prevent double separators in certain conditions where other plugins may also be attempting to add them.
|
| [4246]
|
johnjamesjacoby
|
Prevent double escaping of $post_content when editing topics and replies, and add phpdoc block to remind everyone not to put it back again.
|
| [3038]
|
johnjamesjacoby
|
Prevent comment form from appearing on intercepted theme compat template pages.
|
| [3127]
|
johnjamesjacoby
|
Prevent "create topic" form from showing if current user cannot create topics or there are no public forums to create topics in. Fixes #1443.
|
| [2680]
|
johnjamesjacoby
|
Prepare walker class. Improved paginated reply url links. Rename bbp_reply_topic function to bbp_reply_topic_title.
|
| [4710]
|
johnjamesjacoby
|
Prepare query variables in converter callbacks. Also add some brackets for readability. Props Maty. (2.2 branch)
|
| [4707]
|
johnjamesjacoby
|
Prepare query variables in converter callbacks. Also add some brackets for readability. Props Maty.
|
| [4735]
|
johnjamesjacoby
|
Prepare query in bbp_check_for_duplicate(). See #2185.
|
| [4709]
|
johnjamesjacoby
|
Prepare $username in bbp_user_maybe_convert_pass(). Props Maty. (2.2 branch)
|
| [4706]
|
johnjamesjacoby
|
Prepare $username in bbp_user_maybe_convert_pass(). Props Maty.
|
| [5504]
|
johnjamesjacoby
|
Preliminary template support for un/approving topics. Props netweb. See #2645.
|
| [5507]
|
johnjamesjacoby
|
Preliminary template support for un/approving replies. Props netweb. See #2645.
|
| [4771]
|
johnjamesjacoby
|
Preliminary support for WordPress 3.6 slash approach. (For easier on-going development.)
|
| [5503]
|
johnjamesjacoby
|
Preliminary function support for un/approving topics. Props netweb. See #2645.
|
| [5506]
|
johnjamesjacoby
|
Preliminary function support for un/approving replies. Props netweb. See #2645.
|
| [4664]
|
johnjamesjacoby
|
Preformatted blocks do not need top margin; it's trumped by the preceding paragraph tag.
|
| [3145]
|
johnjamesjacoby
|
Prefix various files in bbp-includes folder with 'core' to identify them as required core files. Update bbpress.php to point to these new filenames.
|
| [3123]
|
johnjamesjacoby
|
Prefix topic and reply author classes with #content for theme compatibility.
|
| [2630]
|
johnjamesjacoby
|
Prefix core meta with underscore inside recount functions
|
| [6819]
|
johnjamesjacoby
|
Prefer `sanitize_html_class()` over `esc_attr()`.
This change uses the correct formatting function in places where potentially untrusted class strings are ran through `array_map()`.
|
| [5866]
|
johnjamesjacoby
|
Prefer `current_filter()` over `current_action()` to maintain compatibility with WordPress versions older than 3.9. Fixes #2529.
|
| [4989]
|
johnjamesjacoby
|
Practice late escaping in bbp_get_dropdown() to make it more clear that attributes are escaped.
|
| [7276]
|
johnjamesjacoby
|
Posts: strip "Protected/Private" for bbPress post types
This change prevents post title hints from being prepended to titles of Forums, Topics, or Replies, which was happening as a consequence of calling `get_the_title()` which assumes every protected/private post title needs it.
It does this by including the following code changes:
* introduce the `bbp_no_title_status_hints()` filter function, which hooks into 2 WordPress filters and maybe overrides the return value
* replace a few `get_the_title()` calls with `get_post_field( 'post_title' )` to bypass the above filters when they would never be desirable
Committer note: this could be considered a small back-compat break (because it alters long-standing theme-side output) but ultimately it is a design decision to output all of the forum content as it was saved by the community members. Forums that prefer the old behavior can unhook `bbp_no_title_status_hints` and continue to customize child template parts to insert custom forum status hints.
Fixes #3602.
|
| [8463]
|
johnjamesjacoby
|
Posts: Report failed forum, topic, and reply edits.
Request WP_Error when WordPress updates a forum, topic, or reply so failed edits can show the underlying error. Escape and format that message correctly, leave topic tags unchanged after a failed reply edit, and cover all three paths with regression tests.
In trunk, for 2.7.
See #3794.
|
| [8453]
|
johnjamesjacoby
|
Posts: Handle missing objects in update callbacks.
Several post-update callbacks accept false as a default argument but read post properties before checking for an object. Bail when a required object is missing, document those defaults, and remove the related PHPStan baseline entries. Normal WordPress hook calls still receive their post objects.
In trunk, for 2.7.
See #3794.
|
| [8460]
|
johnjamesjacoby
|
Posts: Guard status helper lookups.
Topic and reply status helpers expect WP_Post objects, but their filtered getters can return arrays or null. Return those values before reading post fields. Build topic tag input without adding a dynamic WP_Post property, while still passing an object to wp_update_post() for its slashing behavior. Cover filtered results, tag restoration, and quoted content, then remove the resolved PHPStan baseline entries.
In trunk, for 2.7.
See #3794.
|
| [4509]
|
johnjamesjacoby
|
Posting:
* Fix bug causing forum/topic/reply content not to be retained when an error occurs.
* Fixes #2057.
|
| [6850]
|
johnjamesjacoby
|
Post Types: replace literal post type strings with functional wrappers.
This fills in a few gaps where filtered post type names would not be used.
|
| [4158]
|
johnjamesjacoby
|
Post Time:
* Use new post-time template-tags in appropriate bbp-twentyten templates.
|
| [4157]
|
johnjamesjacoby
|
Post Time:
* Use new post-time template-tags in appropriate bbp-theme-compat templates.
|
| [4156]
|
johnjamesjacoby
|
Post Time:
* Introduce template tags for topic and reply post time.
* Includes param for auto-humanizing.
* Fixes theme-compat issues with core date/time template-tags by always supplying a trusted post ID. If one is not available, something has gone horribly wrong now.
|
| [7191]
|
johnjamesjacoby
|
Post Statuses: Audit forum/topic/reply, new/edit handlers.
This change normalizes the approaches between post types and actions, to ensure predictable behavior and avoid PHP notices from undefined status variables in certain situations.
It also adds a capability check to the `bbp_topic_status` condition, so that it is not engaged when the UI was not exposed in the posted form.
Props dd32.
In trunk for 2.7.0. See #3420.
|
| [7192]
|
johnjamesjacoby
|
Post Statuses: Audit forum/topic/reply, new/edit handlers.
This change normalizes the approaches between post types and actions, to ensure predictable behavior and avoid PHP notices from undefined status variables in certain situations.
It also adds a capability check to the `bbp_topic_status` condition, so that it is not engaged when the UI was not exposed in the posted form.
Props dd32.
In branches/2.6 for 2.6.7. Fixes #3420.
|
| [4265]
|
johnjamesjacoby
|
Post Ancestors:
* Cast return value of get_post_ancestors() as an array.
* Check if results of get_post_ancestors() are empty before attempting to iterate through them.
* Fixes issues with looping through orphaned forum content. A rare, but possible occurrence.
|
| [3850]
|
johnjamesjacoby
|
Port r3737 and part r3750 into 2.0 branch.
* Cast parent as integer in bbp_get_forum_ancestors()
* Remove forum ID from hidden/private arrays when setting to public
|
| [3847]
|
nacin
|
Port [3794], [3795] from trunk to branches/1.1.
|
| [5610]
|
johnjamesjacoby
|
Port PHPUnit testing setup from BuddyPress. More to clean up here later.
Also adds 1 test to check for `bbpress()` function availability.
See #2542.
|
| [5248]
|
johnjamesjacoby
|
Port Dashicons support from trunk to 2.5 branch, for 2.5.3. Includes updated color schemes.
|
| [4969]
|
johnjamesjacoby
|
Pluralize user settings ID to match existing naming conventions.
|
| [3833]
|
johnjamesjacoby
|
Pinking shears on bbpress.php.
|
| [3800]
|
johnjamesjacoby
|
Pinking shears on bbp-extend-buddypress.php. See #1669.
|
| [5434]
|
johnjamesjacoby
|
Phpdoc corrections to topic dropdown functions.
|
| [5574]
|
netweb
|
Phorum importer: Include Subscribed Topics
Props netweb. See #2668
|
| [6853]
|
johnjamesjacoby
|
Permalinks: merge root-slug usage into whichever is shown on root.
This change removes the double-archive juggle of having both forums and topics available as archives at the same time, which is traditionally not desirable.
|