#20063 closed defect (bug) (fixed)
Incorrect PHPDoc for get_current_screen
Reported by: | markauk | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | minor | Version: | 3.3.1 |
Component: | Inline Docs | Keywords: | |
Focuses: | Cc: |
Description
The PHPDoc documentation for get_current_screen doesn't properly define the type of object which is returned. It should be:-
* @return object WP_Screen
Patch attached.
Obviously this doesn't make any difference to the running of the code, but will make life easier for anyone with IDE's which parse PHPDoc comments.
Attachments (1)
Change History (7)
#2
in reply to:
↑ 1
@
13 years ago
Yes! I was being unnecessarily frugal with words...
Patch updated.
#3
@
13 years ago
The point was that you can omit 'object' and simply use the actual object WP_Screen as the type designator.
Note: See
TracTickets for help on using
tickets.
Since we can name the specific class it could be: