Make WordPress Core

Opened 10 days ago

Last modified 10 days ago

#48005 reviewing enhancement

PHPDoc correction for WP_Theme::get

Reported by: david.binda Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version: 3.4
Component: Themes Keywords: has-patch
Focuses: docs Cc:


The PHPDoc for the WP_Theme::get function says it returns string|false (added in r32547 ), but it actually may return an array for "Tags" header (via WP_Theme::sanitize_header).

mixed, as used in WP_Theme::sanitize_header may better document the actual state.

Related code:

Attachments (1)

48005.diff (611 bytes) - added by david.binda 10 days ago.

Download all attachments as: .zip

Change History (3)

10 days ago

#1 @SergeyBiryukov
10 days ago

  • Component changed from General to Themes
  • Focuses docs added
  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @mukesh27
10 days ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.