[4353]
|
johnjamesjacoby
|
Capabilities:
* Update inline doc for 'spectate' VS 'participate'.
* See #1939.
|
[4297]
|
johnjamesjacoby
|
Capabilities:
* Update bbp_set_user_role() and bbp_get_user_role() to only work with bbPress forums roles.
* See #1939.
|
[4308]
|
johnjamesjacoby
|
Capabilities:
* Update bbp_profile_update_capabilities() to include saving forums roles.
* When saving a role, remove any individual forums capabilities that were set.
* Add some legacy caps to primary group, so they are correctly removed.
* See #1939.
|
[4311]
|
johnjamesjacoby
|
Capabilities:
* Update bbp_map_primary_meta_caps() to block for inactive users, and check cap for active users.
* See #1939.
|
[4207]
|
johnjamesjacoby
|
Capabilities:
* Update bbp_get_user_display_role() to use special capabilities.
|
[4302]
|
johnjamesjacoby
|
Capabilities:
* Update bbp_edit_user_blog_role() and bbp_edit_user_forums_role() to use appropriate functions to get role arrays.
* See #1939.
|
[4306]
|
johnjamesjacoby
|
Capabilities:
* Update bbp-default templates to support new roles UI.
* See #1939.
|
[4301]
|
johnjamesjacoby
|
Capabilities:
* Update BBP_User_Admin to use roles UI instead of capabilities.
* Leave capabilities in for now, but hidden behind a switch function.
* See #1939.
|
[4291]
|
johnjamesjacoby
|
Capabilities:
* Tweak phpdoc and cast type on return of bbp_use_advanced_capability_editor().
* See #1939.
|
[4172]
|
johnjamesjacoby
|
Capabilities:
* Tweak CSS for capability UI to fix layout issues with varying height divs.
|
[4336]
|
johnjamesjacoby
|
Capabilities:
* Switch default value of global access to 1.
* Fixes confusion about why users are not automatically added to forums.
* See #1939.
|
[4374]
|
johnjamesjacoby
|
Capabilities:
* Since bbp_set_current_user_default_role() is directly hooked to switch_blog, add deactivation check to prevent php warnings.
* See #1939.
|
[4433]
|
johnjamesjacoby
|
Capabilities:
* Set default param values in all map_meta_cap filters, incase none are passed or type cast correctly.
|
[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.
|
[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.
|
[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.
|