| [6975]
|
johnjamesjacoby
|
Capabilities: break instead of return.
This commit ensures that the relative _meta_caps filters continue to be executed within their expected contexts.
Previous to this change, certain mapped capability checks would bail out early and return $caps without the ability to filter the results.
With this change, mapped capabilities can now be filtered more logically and inline with the rest of the surrounding logic.
For 2.7, trunk.
|
| [6972]
|
johnjamesjacoby
|
Capabilities: break instead of return;
This commit ensures that the relative `_meta_caps` filters continue to be executed within their expected contexts.
Previous to this change, certain mapped capability checks would bail out early and return `$caps` without the ability to filter the results.
With this change, mapped capabilities can now be filtered more logically and inline with the rest of the surrounding logic.
For 2.6.2.
|
| [6714]
|
johnjamesjacoby
|
Capabilities: first pass at single topic-tag cap mappings.
This change adds IDs where appropriate, and introduces single term cap checks with intelligent comparisons that match the approach used by forums, topics, and replies.
* Inactive users cannot assign, manage, edit, or delete
* Moderators can assign, manage, edit, and delete
* Participants can assign
* Spectators & Blocked users still cannot manipulate topic tags in any way
This prepares bbPress for third-party plugins to leverage topic-tags in ways it otherwise wasn't prepared to do.
See #3167.
|
| [6713]
|
johnjamesjacoby
|
Capabilities: prevent edits when past the edit-lock time.
This change increases the priority of the `moderator` check, so that moderators are not subjected to edit-lock restrictions, and maps to `do_not_allow` for topic/reply authors who normally can edit but are now beyond the allotted time period.
Fixes #3164. Props SergeyBiryukov.
|
| [2866]
|
johnjamesjacoby
|
Capital P... Dangit! Props westi.
|
| [5215]
|
johnjamesjacoby
|
Capitalize `bbpress::instance();` to `bbPress::instance()` to avoid class/function confusion.
|
| [4219]
|
johnjamesjacoby
|
Caps:
* Prevent users from seeing their own caps if allowed in wp-admin.
|
| [6783]
|
johnjamesjacoby
|
Caps: Check for `$args[0]` and bail if empty.
This change avoids debug notices when single forum/topic/reply capability checks are done without having passed in a post ID.
Props espellcaste, chriscct7. Fixes #3190.
|
| [2957]
|
johnjamesjacoby
|
Carry over the view=all query arguments into other appropriate forum/topic/reply links on the forum pages. This eliminates the inconsistent user experience of asking to view trashed/spammed topics or replies, and being taken to pages where you cannot see those topics/replies.
|
| [2851]
|
johnjamesjacoby
|
Cast return values as (int) where appropriate. Adjust _last_ functions to be more friendly with anonymous user data. Test some logic with _last_ forum/topic/reply where if reply_id does not exist, fall back to topic_id. Remove various strict empty string checks as they should no longer be needed.
|
| [3133]
|
johnjamesjacoby
|
Cast return values of bbp_get_hidden_form_ids() and bbp_get_private_forum_ids() to prevent debug notices when both of these values exist but are single values or empty strings.
|
| [5593]
|
johnjamesjacoby
|
Cast value as `(int)` in `bbp_get_form_forum_parent()`, ensuring it is numerical for the remaining call stack. See #2742.
|
| [2986]
|
johnjamesjacoby
|
Center vertical alignment of revision logs in topics and replies.
|
| [2925]
|
johnjamesjacoby
|
Change 'Forums' to 'Forum' in forums loop template file.
|
| [2943]
|
johnjamesjacoby
|
Change 'bbp-twentyten' theme from child to parent and include all of the standard twentyten theme files. Also wrap function_exists() checks around all functions in bbp-twentyten to allow them to be overloaded.
Remove the 'bbp_' prefix form/topic/reply post types and include a routine in the database updater to handle this. The new post_type's are 'forum', 'topic', and 'reply' respectively.
Rename 'bbp_topic_tag' taxonomy ID to 'topic-tag' and include a routine in the database updater to handle this.
Change underscores in theme files to hyphens and remove 'bbp' prefix where applicable to comply with WordPress file standards.
Update possible template file location options in bbp-general-functions.php for all standard template files. Include option for 'bbpress' or 'forums' subfolders inside the theme directory. This takes advantage of a known anomaly in the get_template_part() function that allows a subfolder to be passed.
|
| [2894]
|
johnjamesjacoby
|
Change @sinces on bbp_author_link functions, and include additional code to support getting the author link and avatar when the post_type is unknown.
|
| [3383]
|
johnjamesjacoby
|
Change bbp-forum-info class to bbp-forum-content in same places. Fixes #1590. Props sorich87.
|
| [2723]
|
johnjamesjacoby
|
Change bbp_convert_date description
|
| [5488]
|
johnjamesjacoby
|
Change behavior of `bbp_check_for_moderation()` so empty `moderation_keys` no longer skips `max_links` check. Props netweb. See #2546.
|
| [3462]
|
johnjamesjacoby
|
Change behavior of bbp_is_topic_tag() to not include when editing a tag. Improvements to topic tag edit logic, and display Edit link in breadcrumb.
|
| [3458]
|
johnjamesjacoby
|
Change dashboard metabox header descriptions. Fixes #1599.
|
| [3432]
|
johnjamesjacoby
|
Change hidden post status from protected to private, as we are now handling forum privacy scope manually. Fixes #1576.
|
| [2645]
|
johnjamesjacoby
|
Change phpDoc and rearrange functions in the order they are called
|
| [3360]
|
johnjamesjacoby
|
Change size of metabox input boxes from 38 to 25, to prevent them from being wider than the parent element.
|
| [2911]
|
johnjamesjacoby
|
Change subscription checkbox text if the post is the current users or someone else's. Fixes #1462.
|
| [3650]
|
johnjamesjacoby
|
Change the default class in bbp_list_forums() so it does not conflict with non-list forums.
|
| [3155]
|
johnjamesjacoby
|
Change the filter used on _bbp_root_slug from sanitize_title to esc_url_raw, to allow for a page path with slashes.
|
| [4737]
|
johnjamesjacoby
|
Change topic and reply content filter order to move 'bbp_mention_filter' just behind 'make_clickable' since mentions are an extention of it. See #2185.
|
| [3839]
|
johnjamesjacoby
|
Check $anonymous_data variable before assuming array index exists in bbp_check_for_duplicate()
|
| [3326]
|
johnjamesjacoby
|
Check appropriate cap in bbp_get_forum_topics_link(). See r3325.
|
| [2622]
|
johnjamesjacoby
|
Check caps on new topic and new reply forms
|
| [3827]
|
johnjamesjacoby
|
Check for BBPRESS_LATE_LOAD constant to enable bbPress to be loaded on plugins_loaded action instead of inline.
|
| [5611]
|
johnjamesjacoby
|
Check for `IXR_Value` class before including BackPress's version.
Avoids collisions when deeply integrated with WordPress.
For 1.1 & 1.2 branches.
|
| [3562]
|
johnjamesjacoby
|
Check for active BuddyPress Group component before registering Forum extension.
|
| [2969]
|
johnjamesjacoby
|
Check for bbp_show_lead_topic() and adjust verbiage from "Replies" to "Posts" and show favorites/subscription links if set to false
|
| [4940]
|
johnjamesjacoby
|
Check for both forum/topic archives when setting 'bbp_show_topics_on_root' query arg. Fixes paged 404's in configurations where a !WordPress page is used in place of the normal Forum archive. See #1500.
|
| [3148]
|
johnjamesjacoby
|
Check for different _get_meta_sql function names (since we are using it prematurely in WP 3.1)
|
| [3199]
|
johnjamesjacoby
|
Check for subforum count in bbp_list_forums() before running expensive IN queries on each forum.
|
| [2853]
|
johnjamesjacoby
|
Check for valid topic and reply ID's on topic_author functions.
|
| [2765]
|
johnjamesjacoby
|
Check proper 'moderate' cap on topic/reply admin actions. Fixes #1432.
|
| [3541]
|
johnjamesjacoby
|
Check query name in bbp_is_single_view(). Fixes #1651. Props !GautamGupta for original patch.
|
| [3569]
|
johnjamesjacoby
|
Check query name in bbp_is_single_view(). See #1651, r3541. (2.1)
|
| [3045]
|
johnjamesjacoby
|
Check that $post global exists to prevent errors and debug notices on genuine 404 pages.
|
| [5077]
|
johnjamesjacoby
|
Check that 'bbp_topic_status' is set before comparing to available topic statuses. Also, use bbp_get_topic_statuses() instead of hardcoded array.
|
| [5596]
|
johnjamesjacoby
|
Check that `user_url` exists before attempting to allow it in max-links.
|
| [5189]
|
johnjamesjacoby
|
Check the `$author_id` before passing it into `bbp_is_user_keymaster()` in blacklist and moderation functions. Prevents accidental role escalation if `$author_id` is empty. See #2393.
|
| [5186]
|
johnjamesjacoby
|
Check the `$located` variable to avoid trying to enqueue a style or script that was not found.
|
| [5024]
|
johnjamesjacoby
|
Check the action in bbp_search_results_redirect(), and bail early if it's not a search request. Fixes regression causing topic merge/split/move actions to redirect to search page introduced in r4928.
|
| [3584]
|
johnjamesjacoby
|
Check the post_content instead of post_title in forum & topic content form functions.
|
| [2960]
|
johnjamesjacoby
|
Check the previous item for separation rather than the current item
|
| [2796]
|
johnjamesjacoby
|
Check the topic_id and reply_id when appending revision logs
|
| [2912]
|
johnjamesjacoby
|
Clarify subscription notification email text. Props designsimply, hanni, westi. Fixes #1472.
|
| [4211]
|
johnjamesjacoby
|
Classes:
* Clean up BBP_Walker_Dropdown::start_el()
|
| [6692]
|
johnjamesjacoby
|
Classes: add more author & moderator related CSS classes to helper functions.
This change adds classes to forums, topics, and replies where the respective author is also a moderator of the nearest parent forum.
See #459.
|
| [2922]
|
johnjamesjacoby
|
Clean up @todo's
|
| [3828]
|
johnjamesjacoby
|
Clean up BBP_Component class methods. Pass $wp_rewrite in sub aciton.
|
| [3026]
|
johnjamesjacoby
|
Clean up _includes() and add 'shortcodes' to the list of included files.
|
| [5376]
|
johnjamesjacoby
|
Clean up `bbp_get_reply_to()` to improve code readability. (2.5 branch)
|
| [5167]
|
johnjamesjacoby
|
Clean up `bbp_get_user_blog_role()` to avoid creating an unused variable.
|
| [2479]
|
johnjamesjacoby
|
Clean up admin area code. Move actions outside of init. Add phpdoc to admin area. Rename a few functions for consistency sake.
|
| [3343]
|
johnjamesjacoby
|
Clean up admin components and loader code.
|
| [2724]
|
johnjamesjacoby
|
Clean up admin forum/topic/reply columns.
|
| [5083]
|
johnjamesjacoby
|
Clean up admin settings fields attribute order: name, ID, type, value, others... See #2388.
|
| [2742]
|
johnjamesjacoby
|
Clean up bb-login.php to prevent potential redirection exploit.
|
| [3359]
|
johnjamesjacoby
|
Clean up bbPress::setup_actions()
|
| [3096]
|
johnjamesjacoby
|
Clean up bbp-admin.php and bbp-users.php after recent separation
|
| [3480]
|
johnjamesjacoby
|
Clean up bbp-twentyten/functions.php
|
| [4238]
|
johnjamesjacoby
|
Clean up bbp_current_author_ua().
|
| [4983]
|
johnjamesjacoby
|
Clean up bbp_get_displayed_user_field(). See #1999.
|
| [2985]
|
johnjamesjacoby
|
Clean up bbp_get_reply_url() and fix issue where trashed replies and view=all would cause malformed URLs.
|
| [4504]
|
johnjamesjacoby
|
Clean up bbp_has_forums() and remove 1-time-use variable.
|
| [4239]
|
johnjamesjacoby
|
Clean up bbp_make_ham_user() and bbp_make_spam_user().
|
| [2950]
|
johnjamesjacoby
|
Clean up bbp_topic_notices() and add ability for custom notices to be filtered.
|
| [3770]
|
johnjamesjacoby
|
Clean up bbpress.php phpdoc
|
| [5500]
|
johnjamesjacoby
|
Clean up core `actions.php`. Props netweb. See #2645.
|
| [2694]
|
johnjamesjacoby
|
Clean up favorites and subscription adding code
|
| [2996]
|
johnjamesjacoby
|
Clean up forum type setting functions. Add function to support hidden forum visibility type. Remove unneeded $bbp global references. Fix incorrect variable name in bbp_update_forum_last_active_id().
|
| [2998]
|
johnjamesjacoby
|
Clean up forum visibility template tags. Include functions for checking each visibility state, as well as retrieving the raw value.
|
| [3448]
|
johnjamesjacoby
|
Clean up forum widget UI. Fixes #1521.
|
| [3152]
|
johnjamesjacoby
|
Clean up functions.php of bbp-twentyten
|
| [2802]
|
johnjamesjacoby
|
Clean up index.php. Number format friendliness. Add some comments. Fixes #1370 props !JohnConners
|
| [3845]
|
johnjamesjacoby
|
Clean up inline doc for array elements in _has_functions to be more human readable.
|
| [2655]
|
johnjamesjacoby
|
Clean up loop-bbp_topics code from adding favorites feature
|
| [2837]
|
johnjamesjacoby
|
Clean up merge and split template files. Only show certain options if other topics exist within the current forum. Add bbp-template-notice.info class for general informational messages.
|
| [4925]
|
johnjamesjacoby
|
Clean up overlapping default arguments in user_topics/replies_created functions.
|
| [3460]
|
johnjamesjacoby
|
Clean up pagination count code and add notes for translators. See #1605.
|
| [4605]
|
johnjamesjacoby
|
Clean up phpdoc block for bbp_kses_allowed_tags().
|
| [4610]
|
johnjamesjacoby
|
Clean up phpdoc for bbp_get_total_users(). See #1799.
|
| [3329]
|
johnjamesjacoby
|
Clean up plugins_url global and usages. Props cnorris23. Fixes #1557.
|
| [2744]
|
johnjamesjacoby
|
Clean up post type registration code. Allow capable users to view trashed/spammed topics. Fixes #1346. Props !GautamGupta via Google Code-in.
|
| [2697]
|
johnjamesjacoby
|
Clean up setting of current_user variable
|
| [3144]
|
johnjamesjacoby
|
Clean up shortcode class phpDoc
|
| [2949]
|
johnjamesjacoby
|
Clean up some @todo's and add some missing inline documentation to bbp-topic-functions.php.
|
| [2701]
|
johnjamesjacoby
|
Clean up some old phpDoc
|
| [2934]
|
johnjamesjacoby
|
Clean up the default topic status code in bbp_has_topics()
|
| [3071]
|
johnjamesjacoby
|
Clean up the main bbPress and BBP_Admin classes. Add php5 constructors for future compatibility.
|
| [3080]
|
johnjamesjacoby
|
Clean up the shortcode output buffer methods.
|
| [3193]
|
johnjamesjacoby
|
Clean up whitespace and comment out Green admin UI styling since it will need a refresh when WordPress 3.1 ships anyways.
|
| [3743]
|
johnjamesjacoby
|
Clean up whitespace and formatting in template loader functions. See r3739.
|
| [3740]
|
johnjamesjacoby
|
Clean up whitespace and remove some cruft from r3739.
|