Opened 9 years ago
Closed 9 years ago
#2344 closed defect (bug) (fixed)
Show private banner for class methods that are private
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Developer Hub | Keywords: | |
| Cc: |
Description
The current banner that displays for private functions does not display for private class methods not explicitly documented with @access private. This is due to two things:
get_private_access_message()does not handle wp-parser-method posts (it needs to be whitelisted)- Even once
get_private_access_message()handles the post type, the function needs to fall back to checking the post's '_wp-parser_visibility' meta field to see if it was defined with an access modifier of 'private'.
Example: https://developer.wordpress.org/reference/classes/_wp_editors/get_translation/
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 4580: