| [4244]
|
johnjamesjacoby
|
Capabilities:
* Separate capabilities into files for their respective components.
* Add minimum capability to topic views. (Assume no cap is public.)
* Make bbp_map_meta_caps a subaction, and move it to bbp-core-dependency.php.
* Introduce component meta map functions in each -caps.php file.
* Update bbp_current_user_can_see() to use capabilities instead of being a boolean switch.
* Working towards removing the need to add/remove caps to existing roles, allowing them to be strictly per user as needed.
|
| [4314]
|
johnjamesjacoby
|
Capabilities:
* Revert r4313.
* Remove negative 'blocked' capability; use not 'spectate' instead.
* See #1939.
|
| [4066]
|
johnjamesjacoby
|
Capabilities:
* Revert r4064, as the 'read' capability is used to check for participant role mask.
* See #1887.
|
| [4367]
|
johnjamesjacoby
|
Capabilities:
* Reverse logic in bbp_user_has_profile().
* Assume all users have profiles, and they must be explicitly disabled.
* This is a more natural default behavior, as rarely will a site need to restrict a user's profile to a specific central site.
* See #1939.
|
| [4185]
|
johnjamesjacoby
|
Capabilities:
* Rename global role masking to bbp_set_current_user_default_role().
* Update phpdoc and action usages.
* See #1942.
|
| [4352]
|
johnjamesjacoby
|
Capabilities:
* Rename bbp_get_editable_roles() to bbp_get_dynamic_roles().
* This new function name better represents bbPress's approach to secondary user roles, in that these roles are no longer intentionally saved to the database.
* See #1939.
|
| [4354]
|
johnjamesjacoby
|
Capabilities:
* Rename 'anonymous' role to 'visitor' to avoid confusion with logged-out anonymity.
* Renames functions, keys, filters, et all.
* See #1939.
|
| [4292]
|
johnjamesjacoby
|
Capabilities:
* Remove trailing whitespace in core/capabilities.php.
* See #1939.
|
| [4164]
|
johnjamesjacoby
|
Capabilities:
* Remove roles and move everything to mapped capabilities.
* First pass at admin-side forum capability manager.
* Deprecate moderator, anonymous, and participant roles and associated functions.
* Deprecate add/remove role/cap functions.
* More cap mapping needed for users that are not explicitly blocked.
* Adds cap check to forms for topic-tag adding/editing.
* See #1939
|
| [4168]
|
johnjamesjacoby
|
Capabilities:
* Remove negative 'blocked' cap and use positive 'participate' cap instead.
* Replaces old 'bbp_participant' role nicely.
|
| [4349]
|
johnjamesjacoby
|
Capabilities:
* Remove most capability mappings to 'participate' cap.
* Update bbp_set_current_user_default_role() to dynamically map a logged in user if global access is turned off.
* Provides alternative to users being granted a database role without taking any action.
* This makes bbPress work similarly to comments, though a decision needs to be made regarding profile pages for these "anonymous" users.
|
| [4080]
|
johnjamesjacoby
|
Capabilities:
* Remove is_multisite() checks from role masking, to allow single-site installs with shared user tables to still mask roles.
* See #1894.
|
| [4083]
|
johnjamesjacoby
|
Capabilities:
* Remove is_multisite() checks from role masking, to allow single-site installs with shared user tables to still mask roles.
* See #1894 (2.2 branch)
|
| [4222]
|
johnjamesjacoby
|
Capabilities:
* Remove experimental Bozo functionality. We can use the 'participate' to prevent forum participation without creating topics or replies.
* Introduce functions to reset, save, and remove user capabilities.
* Use these functions in both theme-side and admin-side profiles.
* Add capabilities to bbp-twentyten theme. This will be moved into the stand-alone bbp-twentyten theme soon'ish.
|
| [4319]
|
johnjamesjacoby
|
Capabilities:
* Remove caps before setting new role in bbp_profile_update_capabilities().
* See #1939.
|
| [4412]
|
johnjamesjacoby
|
Capabilities:
* Remove call to array_diff_assoc() in bbp_filter_blog_editable_roles().
* Use two foreach() loops instead.
* Randomly stopped working; no time before 2.2 to investigate.
|
| [4180]
|
johnjamesjacoby
|
Capabilities:
* Remove bbp_masked capability when setting the user role.
* Do not set a fake role in bbp_global_access_role_mask().
* Rename variable in bbp_global_access_role_mask() to be more literal.
* Add note to phpdoc of bbp_global_access_role_mask().
|
| [4320]
|
johnjamesjacoby
|
Capabilities:
* Remove all previous forums roles in bbp_set_user_role().
* Use direct array intersection instead of bbp_get_user_role().
* Fixes issue where users can have more than 1 forum role.
* See #1939.
|
| [4330]
|
johnjamesjacoby
|
Capabilities:
* Remove advanced capabilities code, template part, and UI helpers.
* This has been replaced by the forums roles selection.
* See #1939.
|
| [4064]
|
johnjamesjacoby
|
Capabilities:
* Remap 'read' capability to moderator and lesser roles, since it will be needed by bbPress to read most things.
* Fixes #1887.
|
| [4375]
|
johnjamesjacoby
|
Capabilities:
* Rehook bbp_set_current_user_default_role() back to 'bbp_setup_current_user'.
* Now that deactivation check has moved, it's safe to hook this directly again.
* Remove from bbPress::setup_current_user().
* See #1939.
|
| [4165]
|
johnjamesjacoby
|
Capabilities:
* Reference correct function in bbp_add_caps()
* See #1939
|
| [4339]
|
johnjamesjacoby
|
Capabilities:
* PHP5'ize list table BBP_Users_Admin methods.
* See #2012.
|
| [4431]
|
johnjamesjacoby
|
Capabilities:
* Only try to add the new role if there's a new role to add.
|
| [4360]
|
johnjamesjacoby
|
Capabilities:
* Only setup the default current user role when the current user has been byref copied into bbPress's instance.
* Fixes issue where some core actions are suppressed during the deactivation process, causing an action order conflict with current_user.
* Fixes #1939.
|
| [4413]
|
johnjamesjacoby
|
Capabilities:
* Only loop through array keys in bbp_filter_blog_editable_roles().
* Prevents unused value variables from being created.
|
| [4346]
|
johnjamesjacoby
|
Capabilities:
* Move status and role user functions out of users/functions.php and into users/capabilities.php.
* See #1939.
|
| [4419]
|
johnjamesjacoby
|
Capabilities:
* Moderators cannot see forums in wp-admin.
|
| [4446]
|
johnjamesjacoby
|
Capabilities:
* Map caps to read_private_posts in forum/topic/reply read_ checks.
* Fixes debug notices and possible mapped caps from an unset object variable.
* Fixes #2039 (trunk)
|
| [4445]
|
johnjamesjacoby
|
Capabilities:
* Map caps to read_private_posts in forum/topic/reply read_ checks.
* Fixes debug notices and possible mapped caps from an unset object variable.
* Fixes #2039 (2.2 branch)
|
| [4364]
|
johnjamesjacoby
|
Capabilities:
* Introduce two helper functions: bbp_filter_user_roles_option() and _bbp_reinit_dynamic_roles()
* Fixes bug where switching to a new blog would wipe out dynamically loaded roles.
* Filter the *_user_roles option, and add bbPress's roles to it.
* See #1939.
|
| [4236]
|
johnjamesjacoby
|
Capabilities:
* Introduce sub-action for saving a users profile.
* Hook capability saving functions to this new action.
* Remove duplicate admin routine from /bbp-admin/bbp-users.php.
* Remove hardcoded capability saving from bbp_edit_user_handler().
* Add edit_user capability checks to cap save and reset functions.
* Fixes bug when caps would be lost when a user saves their own profile.
* Fixes #1963.
|
| [4365]
|
johnjamesjacoby
|
Capabilities:
* Introduce functionality for bulk-edit of user forums roles.
* Uses new 'keep_gate' capability to prevent granting keymaster role from a non-keymaster.
* For !WordPress 3.5 and higher.
* Props jmdodd.
* See #1939.
* Fixes #2016.
|
| [4305]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_user_register() and bbp_profile_update() sub-actions.
* See #1939.
|
| [4363]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_user_has_profile() function in /users/capabilities.php.
* Use this function to suppress links to a profile of a user with no role on the site.
* Replaces some logic in bbp_parse_query() for setting user profile query variables.
* See #1939.
|
| [4289]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_set_user_role() and add $context parameter to bbp_get_user_role().
* See #1939.
|
| [4293]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_get_wp_roles() and use in place of $wp_roles global.
* See #1939.
|
| [4335]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_get_user_role_map() to more intelligently map !WordPress roles to bbPress roles.
* Use bbp_get_user_role_map() in bbp_set_current_user_default_role().
* See #1939.
* Fixes #2010.
|
| [4294]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_get_default_role() in core/options.php and set default option value.
* See #1939.
|
| [4288]
|
johnjamesjacoby
|
Capabilities:
* Introduce bbp_edit_user_forums_role() and rename bbp_edit_user_role() to bbp_edit_user_blog_role().
* See #1939.
|
| [4303]
|
johnjamesjacoby
|
Capabilities:
* Introduce 'bbp_profile_update' sub-action.
* Use in place of piggy-backed admin user profile actions.
* See #1939.
|
| [4371]
|
johnjamesjacoby
|
Capabilities:
* Hook bbp_set_current_user_default_role() to 'switch_blog'
* Fixes bug where mapped forums role was lost on multisite when WP_Admin_Bar::initialize() would switch to a blog that a user is a member of, if the user was viewing a forum on a site they do not have a role on.
* See #1939.
|
| [4350]
|
johnjamesjacoby
|
Capabilities:
* Hook bbp_add_forums_roles() to 'bbp_setup_theme' since it's before user init.
* Add anonymous role to dynamic role loader.
* Fixes issues with roles not being mapped correctly on new installations.
|
| [4351]
|
johnjamesjacoby
|
Capabilities:
* Get correct capabilities for anonymous role in bbp_get_editable_roles().
* These are currently the same, though will change in future versions.
|
| [4304]
|
johnjamesjacoby
|
Capabilities:
* Filter out bbPress roles from editable_roles array.
* Introduce bbp_filter_blog_editable_roles() and hook to 'editable_roles'.
* See #1939.
|
| [4192]
|
johnjamesjacoby
|
Capabilities:
* Enforce negative capabilities in user_profile_update() by using add_cap( $cap, false );
* Remove new-role dance from capability reset, as bbPress capabilities are still added to each individual role as needed.
|
| [4316]
|
johnjamesjacoby
|
Capabilities:
* Enforce blocked logged in users by showing them a 404 if they cannot spectate.
* See #1939.
|
| [4300]
|
johnjamesjacoby
|
Capabilities:
* Do no call bbp_add_caps() on activation anymore.
* This is handled by new forums roles.
* See #1939.
|
| [4184]
|
johnjamesjacoby
|
Capabilities:
* Bring back bbp_add_caps() and bbp_remove_caps().
* Remove role mask, and more aggressively add registered user to site with default role when user visits the site for the first time.
* See #1942.
|
| [4182]
|
johnjamesjacoby
|
Capabilities:
* Bail if in network admin.
* Prevent modifying blog caps in network admin area.
|
| [4307]
|
johnjamesjacoby
|
Capabilities:
* Always show roles UI; only show capabilities if switch is on.
* See #1939.
|
| [4454]
|
johnjamesjacoby
|
Capabilities:
* Allow moderators to view hidden forums too.
* For trunk.
|
| [4453]
|
johnjamesjacoby
|
Capabilities:
* Allow moderators to view hidden forums too.
|
| [4678]
|
johnjamesjacoby
|
Capabilities:
* Allow keymaster role to use Forums tools and save Forums settings.
* Fixes #2139.
|
| [4341]
|
johnjamesjacoby
|
Capabilities:
* Add tool for remapping site users to the expected forums role.
* Does not remove existing !WordPress core roles.
* See #1939, #2010.
|
| [4290]
|
johnjamesjacoby
|
Capabilities:
* Add support for forum specific roles in core/capabilities.php.
* See #1939.
|
| [4299]
|
johnjamesjacoby
|
Capabilities:
* Add setting callback for default_role.
* Update verbiage for auto-role/global-access.
* See #1939.
|
| [4406]
|
johnjamesjacoby
|
Capabilities:
* Add sanity check in bbp_set_current_user_default_role() to check that setup_current_user action has already fired.
* If not, bail early, since there is no user to attach a role to yet.
* This should not happen under normal circumstances, only when doing advanced tricks or otherwise _doing_it_wrong().
* This bit is subject to change, based on testing.
|
| [4309]
|
johnjamesjacoby
|
Capabilities:
* Add label to admin user role UI, to match !WordPress core convention.
* See #1939.
|
| [3944]
|
johnjamesjacoby
|
Capabilities:
* Add 'read_private_forums' capability to all registered user roles.
* This can still be conditionally modified by other plugins (namely BuddyPress for Private Group Forums.)
* Fixes #1845.
|
| [4179]
|
johnjamesjacoby
|
Capabilities:
* Add 'participate' capability to admin role defaults.
* Rearrange bbp_global_access_role_mask() to check logged in and member of blog before inactive.
* Default to WordPress Subscriber role in bbp_global_access_role_mask().
* Addresses issue where users don't get proper default caps masked to them.
|
| [4313]
|
johnjamesjacoby
|
Capabilities:
* Add 'blocked' capability for Blocked role.
* See #1939.
|
| [4338]
|
johnjamesjacoby
|
Capabilities:
* Add "Forum Role" column to single-site users list.
* Fixes issue where there was no immediate way to see what users had what forums role at a glance.
* Props jmdodd.
* Fixes #2012.
|
| [3946]
|
johnjamesjacoby
|
Capabilities & Settings:
* Rename bbp_admin_show_ui() to bbp_current_user_can_see().
* Add detailed support for hiding admin settings sections.
* Remove BBP_Admin UI override flags in lieu of new method.
* See #1846.
|
| [3945]
|
johnjamesjacoby
|
Capabilities & Settings:
* Introduce bbp_admin_show_ui() function to handle fine-grained control of available settings screens and sections.
* Fixes #1846.
* See #1826.
|
| [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.
|
| [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.
|
| [8085]
|
johnjamesjacoby
|
Canonical: Protect ID-based redirects.
Resolve ID-based canonical redirect targets using the same query-variable normalization and precedence as WordPress. Prevent restricted forum, topic, and reply permalinks from being disclosed through alternate or conflicting request variables while preserving redirects for readable bbPress content and unrelated post types.
Add regression coverage for request normalization, restricted content, public posts, and authorized users.
In trunk, for 2.7.
|
| [8086]
|
johnjamesjacoby
|
Canonical: Protect ID-based redirects.
Resolve ID-based canonical redirect targets using the same query-variable normalization and precedence as WordPress. Prevent restricted forum, topic, and reply permalinks from being disclosed through alternate or conflicting request variables while preserving redirects for readable bbPress content and unrelated post types.
Add regression coverage for request normalization, restricted content, public posts, and authorized users.
In branches/2.6, for 2.6.21.
|
| [7499]
|
johnjamesjacoby
|
Canonical: Prevent permalink guessing for bbPress post types.
Prevent WordPress from guessing canonical permalinks for bbPress post types, because forum visibility may restrict access to the matched content. Extend bbp_is_custom_post_type() to accept post-type names and arrays while preserving its existing post object and ID behavior.
In trunk, for 2.7.
Props foobar7.
|
| [7500]
|
johnjamesjacoby
|
Canonical: Prevent permalink guessing for bbPress post types.
Prevent WordPress from guessing canonical permalinks for bbPress post types, because forum visibility may restrict access to the matched content. Extend bbp_is_custom_post_type() to accept post-type names and arrays while preserving its existing post object and ID behavior.
In branches/2.6, for 2.6.16.
Props foobar7.
|
| [8096]
|
johnjamesjacoby
|
Canonical: Match route roots case-insensitively.
Normalize the requested path and configured bbPress route roots with WordPress's percent-decoding behavior before comparison. This prevents mixed-case and encoded route requests from bypassing the permalink-guess guard while preserving unrelated similarly prefixed paths.
In trunk, for 2.7.
Props dd32.
Fixes #3751.
See [meta:9850].
See meta:#4606.
|
| [8097]
|
johnjamesjacoby
|
Canonical: Match route roots case-insensitively.
Normalize the requested path and configured bbPress route roots with WordPress's percent-decoding behavior before comparison. This prevents mixed-case and encoded route requests from bypassing the permalink-guess guard while preserving unrelated similarly prefixed paths.
In branches/2.6, for 2.6.21.
Props dd32.
See #3751.
See [meta:9850].
See meta:#4606.
|
| [8093]
|
johnjamesjacoby
|
Canonical: Avoid broad malformed-route guesses.
Prevent WordPress from running broad partial-slug permalink queries for unresolved requests beneath configured bbPress route roots. Preserve canonical guessing for unrelated requests and similarly prefixed paths.
Add regression coverage for the WordPress.org failure reported in #meta3894.
In trunk, for 2.7.
Props dd32.
Fixes #3751.
See [meta7806].
|
| [8094]
|
johnjamesjacoby
|
Canonical: Avoid broad malformed-route guesses.
Prevent WordPress from running broad partial-slug permalink queries for unresolved requests beneath configured bbPress route roots. Preserve canonical guessing for unrelated requests and similarly prefixed paths.
Add regression coverage for the WordPress.org failure reported in #meta3894.
In branches/2.6, for 2.6.21.
Props dd32.
See #3751.
See [meta7806].
|
| [4041]
|
johnjamesjacoby
|
Caches:
* Introduce bbp_clean_post_cache() to handle cleaning custom queries and post ancestors.
* Audit use of _pre_ and _post_ forum/topic/reply actions and locations. Reposition and pass parents as needed.
* Add 'bbp_clean_post_cache' action to necessary _pre_ and _post_ actions.
* Fixes #1861.
|
| [6585]
|
johnjamesjacoby
|
Cache: make `bbp_clean_post_cache()` an action-only function.
Instead of calling `bbp_clean_post_cache()` directly, we'll call `clean_post_cache()` as per normal and hook `bbp_clean_post_cache()` to the end of it. This reduces a bunch of superfluous cache invalidation from occurring back-to-back.
We'll also only ever update the `last_changed` cache key when we've reached the forum-root. This makes sure that subsequent recursive calls up the `post_parent` tree are dealing with the same `last_changed` value until the end.
This change will reduce the number of cache invalidation calls by a large amount, improving functional performance for database writes to the post & postmeta tables.
|
| [7856]
|
johnjamesjacoby
|
Cache: Recognize capabilities keys without underscores.
Invalidate cached forum-user counts for metadata keys ending in capabilities, including keys generated by valid WordPress table prefixes without a trailing underscore.
In trunk, for 2.7.
Fixes #3713.
|
| [5774]
|
johnjamesjacoby
|
Cache: Much more sane cache invalidation.
This change improves hierarchical forum/topic/reply cache invalidations by not requiring each call to be strategically placed between actions to avoid race conditions.
Props thebrandonallen. Fixes #2800.
|
| [6054]
|
netweb
|
Cache: Allow a second parameter to be passed to `bbp_clean_post_cache()`
Following [5774] WP's `clean_post_cache` hook can pass both post ID and the post object, this changeset allows that second parmeter to be passed to `bbp_clean_post_cache()` and updates our `add_action` call to send both parameters.
Props thebrandonallen.
Fixes #2813.
|
| [4011]
|
johnjamesjacoby
|
Cache:
* When updating bbPress post content, prevent cache invalidation of its children.
* Fixes #1859.
* Hat tip wonderboymusic.
|
| [4012]
|
johnjamesjacoby
|
Cache:
* Update phpdoc for BBP_Skip_Children::pre_post_update()
* See #1859.
|
| [4210]
|
johnjamesjacoby
|
Cache:
* Update bbp_clean_post_cache() to use $_post instead of $post.
* Clean up post parent cache cleaning logic
|
| [4898]
|
johnjamesjacoby
|
Cache clean-up:
* Perform strict comparisons on wp_cache_get() results.
* Add caching to bbp_get_topic_favoriters().
* Use wp_parse_id_list() where appropriate in touched functions.
* See #2331.
|
| [5652]
|
netweb
|
CSS: Include relevant topic and search CSS classes alongside existing reply responsive media queries for mobile search results.
Props netweb. Fixes #2486
|
| [3635]
|
johnjamesjacoby
|
CSS tweaks after moving to tableless layout.
|
| [6744]
|
johnjamesjacoby
|
CSS cleanup from r6743.
|
| [3785]
|
johnjamesjacoby
|
CSS class changes
* Add user-id and topic-author to reply class
* Add user-id to topic class
* Run reply classes through array_filter()
* Fixes #1763
* Props jaredatch
|
| [5636]
|
johnjamesjacoby
|
Bye. Props djpaul. See #2771 (trunk)
|
| [5638]
|
johnjamesjacoby
|
Bye. Props djpaul. See #2771 (2.5 branch)
|
| [5732]
|
johnjamesjacoby
|
Bumps: Normalize type-casting in bump functions.
Props thebrandonallen, netweb. See #2801.
|
| [5888]
|
netweb
|
Bumps: Normalize type-casting in `bbp_bump_user_reply_count()` missed in r5732
See #2801
|
| [4901]
|
johnjamesjacoby
|
Bump.
|
| [4474]
|
johnjamesjacoby
|
Bump.
|
| [4403]
|
johnjamesjacoby
|
Bump.
|
| [4356]
|
johnjamesjacoby
|
Bump.
|
| [4230]
|
johnjamesjacoby
|
Bump.
|
| [7228]
|
johnjamesjacoby
|
Bump versions to 2.6.9.
|
| [6978]
|
johnjamesjacoby
|
Bump versions to 2.6.2.
|
| [4027]
|
johnjamesjacoby
|
Bump versions to 2.1-rc3
|