[wp-trac] [WordPress Trac] #48645: PHPDoc correction for wp_upload_bits()

WordPress Trac noreply at wordpress.org
Thu Nov 14 21:28:05 UTC 2019


#48645: PHPDoc correction for wp_upload_bits()
--------------------------+-----------------------------
 Reporter:  leogermani    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Upload        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 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`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48645>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list