Make WordPress Core

Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#58229 closed defect (bug) (fixed)

Documentation corrections for `WP_Filesystem_Base` and extending classes

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 6.3 Priority: normal
Severity: normal Version: 3.7
Component: Filesystem API Keywords: has-patch
Focuses: docs Cc:

Description

As identified by @mat-lipe, the documented return type for the dirlist() method of the WP_Filesystem_Base class and its extending classes is incorrect. This method returns an array of arrays but is documented as a one-dimensional array.

In addition there are several corrections and improvements to be made to the documented array elements.

Change History (4)

This ticket was mentioned in PR #4407 on WordPress/wordpress-develop by @johnbillion.


5 months ago
#1

  • Keywords has-patch added

#3 @johnbillion
5 months ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 55714:

Filesystem API: Correct and improve the return type documentation for the dirlist() method in WP_Filesystem_Base and its extending classes.

Props mat-lipe, szepeviktor, costdev, audrasjb, johnbillion

Fixes #58229
See #57840

Note: See TracTickets for help on using tickets.