WordPress.org

Make WordPress Core

Ticket #9339: 9339.diff

File 9339.diff, 504 bytes (added by Denis-de-Bernardy, 9 years ago)

against 11256

  • wp-includes/capabilities.php

     
    504504                $this->cap_key = $wpdb->prefix . 'capabilities';
    505505                $this->caps = &$this->{$this->cap_key};
    506506                if ( ! is_array( $this->caps ) )
    507                         $this->caps = array();
    508                 $this->get_role_caps();
     507                        $this->add_role(get_option('default_role'));
     508                else
     509                        $this->get_role_caps();
    509510        }
    510511
    511512        /**