opencredit / badgeos

BadgeOS is a plugin to WordPress that allows you to easily create badges and set up the steps and achievements users take to earn them. Badges are Mozilla OBI compatible and sharable via Credly.
http://www.badgeos.org
GNU Affero General Public License v3.0
92 stars 64 forks source link

Fix use of register_post_type in post-types.php. #657

Closed balshor closed 5 years ago

balshor commented 5 years ago

The capabilities argument of register_post_type requires an associative array of singular to plural capabilities, as the capability_type would be expanded to. Using a numeric array causes some subtle capability calculation bugs.

See the documentation for capabilities, indicating that the default value is constructed from capability_type, which provides an example of the associative array format.