library/Admin/Roles/General.php
public function addMissingRoles()
    {
        if (!get_role('author')) {
            add_role(
                'author',
                'Author',
                array(
                    'upload_files'           => true,
                    'edit_posts'             => true,
                    'edit_published_posts'   => true,
                    'publish_posts'          => true,
                    'read'                   => true,
                    'level_2'                => true,
                    'level_1'                => true,
                    'level_0'                => true,
                    'delete_posts'           => true,
                    'delete_published_posts' => true
                )
            );

            delete_option('_author_role_bkp');
        }
    }
public function addMissingRoles()
    {
        if (!get_role('author')) {
            add_role(
                'author',
                'Author',
                array(
                    'upload_files'           => true,
                    'edit_posts'             => true,
                    'edit_published_posts'   => true,
                    'publish_posts'          => true,
                    'read'                   => true,
                    'level_2'                => true,
                    'level_1'                => true,
                    'level_0'                => true,
                    'delete_posts'           => true,
                    'delete_published_posts' => true
                )
            );

            delete_option('_author_role_bkp');
        }
    }
public function addMissingRoles ( ) { if ( ! get_role ( 'author' ) ) { add_role ( 'author' , 'Author' , array ( 'upload_files' => true , 'edit_posts' => true , 'edit_published_posts' => true , 'publish_posts' => true , 'read' => true , 'level_2' => true , 'level_1' => true , 'level_0' => true , 'delete_posts' => true , 'delete_published_posts' => true ) ) ; delete_option ( '_author_role_bkp' ) ; } }
Adds back missing author role
Adds back missing author role