Make WordPress Core

Opened 16 months ago

Last modified 3 months ago

#38732 reviewing enhancement

Document WP_Roles->role_objects as an array of WP_Role objects

Reported by: jdgrimes Owned by: johnbillion
Milestone: 5.0 Priority: normal
Severity: normal Version: 4.7
Component: Role/Capability Keywords: has-patch
Focuses: docs Cc:


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)

38732.diff (364 bytes) - added by stevenlinx 4 months ago.

Download all attachments as: .zip

Change History (4)

4 months ago

#1 @stevenlinx
4 months ago

  • Keywords has-patch added

#2 @johnbillion
4 months ago

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.

#3 @johnbillion
3 months ago

  • Milestone changed from Awaiting Review to 5.0
  • Owner set to johnbillion
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.