Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/02/2013 07:20:49 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Normalize forum, topic, and reply dropdown form fields and associated functions. Includes several new functions with _get_ equivalents to replace incorrectly named _select() functions.

First pass at adding custom topic status handling. Props jkudish. See #2187.

Also replaces $wpdb->update() calls with wp_update_post() in associated functions. Fixes #2351.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/capabilities.php

    r5057 r5060  
    505505 */
    506506function bbp_remove_roles() {
    507 
    508         // Remove the bbPress roles
    509         foreach ( array_keys( bbp_get_dynamic_roles() ) as $bbp_role ) {
    510                 remove_role( $bbp_role );
    511         }
    512 
    513         // Some early adopters may have a deprecated visitor role. It was later
    514         // replaced by the Spectator role.
    515         remove_role( 'bbp_visitor' );
    516 }
     507        _doing_it_wrong( 'bbp_remove_roles', __( 'Editable forum roles no longer exist.', 'bbpress' ), '2.2' );
     508}
Note: See TracChangeset for help on using the changeset viewer.