[wp-meta] [Making WordPress.org] #2344: Show private banner for class methods that are private
Making WordPress.org
noreply at wordpress.org
Fri Dec 23 19:02:28 UTC 2016
#2344: Show private banner for class methods that are private
---------------------------+-----------------
Reporter: coffee2code | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Developer Hub | Keywords:
---------------------------+-----------------
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:
1. `get_private_access_message()` does not handle wp-parser-method posts
(it needs to be whitelisted)
2. 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/
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2344>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list