#38732 closed enhancement (fixed)
Document WP_Roles->role_objects as an array of WP_Role objects
Reported by: | jdgrimes | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Role/Capability | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Currently the $role_objects
property of the WP_Roles
class is just documented as an array
. It ought to be documented as an array of WP_Role
objects instead: WP_Role[]
.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Thanks for the patch. This is effectively blocked by #41756 as the docs parser hasn't been tested with this format yet. If everything works okay and nothing explodes, we can go ahead and start implementing this known array type format for docs.