Make WordPress Core

Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#38732 closed enhancement (fixed)

Document WP_Roles->role_objects as an array of WP_Role objects

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

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)

38732.diff (364 bytes ) - added by stevenlinx 9 years ago.

Download all attachments as: .zip

Change History (6)

@stevenlinx
9 years ago

#1 @stevenlinx
9 years ago

  • Keywords has-patch added

#2 @johnbillion
9 years 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
9 years ago

  • Milestone Awaiting Review5.0
  • Owner set to johnbillion
  • Status newreviewing

#4 @johnbillion
8 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 42870:

Docs: Document WP_Roles properties with typed array notation.

Props stevenlinx

Fixes #38732
See #41756

#5 @johnbillion
8 years ago

  • Milestone 5.05.1
Note: See TracTickets for help on using tickets.