Skip to content

Commit

Permalink
Version 0.9.2 (for real)
Browse files Browse the repository at this point in the history
Missed a BU-specific code removal prior to last commit
  • Loading branch information
Mike Burns committed Mar 27, 2013
1 parent 72f1471 commit b11723e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bu-section-editing.php
Expand Up @@ -84,9 +84,6 @@ public static function init() {
// Roles and capabilities
add_filter( 'map_meta_cap', array( self::$caps, 'map_meta_cap' ), 10, 4 );

// @todo move this to the bu_user_manager plugin
add_filter( 'bu_user_manager_allowed_roles', array( __CLASS__, 'allowed_roles' ) );

// Admin requests
if( is_admin() ) {

Expand Down Expand Up @@ -158,19 +155,6 @@ public static function plugin_dependency_nag() {

}

/**
* Callback that adds section editor role to BU list of allowed roles
*/
public function allowed_roles( $roles ) {

if( ! array_key_exists( 'section_editor', $roles ) ) {
$roles[] = 'section_editor';
}

return $roles;

}

public static function add_post_type_support() {

// Support posts and pages + all custom post types with show_ui by default
Expand Down

0 comments on commit b11723e

Please sign in to comment.