Skip to:
Content

bbPress.org

Changeset 6078


Ignore:
Timestamp:
08/25/2016 07:09:54 AM (8 years ago)
Author:
netweb
Message:

Options: Set the default value of bbp_get_user_slug() to users

This changeset updates the default single user slug from user to users. The bbp_get_default_options() function defines the default as users and this is used when installing and activating bbPress. This fixes a scenario where bbPress options have not been saved which would cause the single user slug to use the unexpected slug user rather than users.

Props ocean90.
Fixes #2983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/options.php

    r6072 r6078  
    619619 * @return string
    620620 */
    621 function bbp_get_user_slug( $default = 'user' ) {
     621function bbp_get_user_slug( $default = 'users' ) {
    622622    return apply_filters( 'bbp_get_user_slug', bbp_maybe_get_root_slug() . get_option( '_bbp_user_slug', $default ) );
    623623}
Note: See TracChangeset for help on using the changeset viewer.