Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#48645 closed defect (bug) (fixed)

PHPDoc correction for wp_upload_bits()

Reported by: leogermani's profile leogermani Owned by:
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Upload Keywords:
Focuses: docs Cc:


In version 5.3 the error control operator was removed from the call to fwrite.

This means that the if the $bits paramater is anything but a string, this function will throw a Warning, because $bits is passed directly to fwrite and fwrite expects it to be a string.

The inline docs declare $bits as mixed, I think we should change it to string.

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 5.4
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the ticket! This was already corrected in [46660] as a part of #48303.

Note: See TracTickets for help on using tickets.