Make WordPress Core

Opened 5 years ago

Last modified 7 days ago

#51768 new defect (bug)

In documentation, replace references to 'list' with 'array'

Reported by: johannadevos's profile johannadevos Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: General Keywords: has-patch
Focuses: docs Cc:

Description (last modified by SergeyBiryukov)

In ticket #39049, a patch was submitted to replace the word 'list' with 'array' in one function.

On that ticket, there was a comment saying that "the terms array and list are often used interchangeably in documentation throughout WordPress core. In fact, searching for "a list of" in core returns almost 150 results."

For this ticket, replace all occurrences of 'list' in function documentation with 'array'.

Change History (5)

#1 @justinahinon
5 years ago

  • Focuses docs added

#2 @SergeyBiryukov
5 years ago

  • Description modified (diff)

#3 @SergeyBiryukov
5 years ago

In 49595:

Docs: Clarify that get_pages() returns an array of pages, not an HTML list.

Props ben.meredith@…, ovenall, johannadevos.
Fixes #39049. See #51768.

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


7 days ago
#4

  • Keywords has-patch added

#5 @yashjawale
7 days ago

Added a PR to resolve this. Care has been taken to only change to array where it makes sense instead of simple Find-n-replace

Feel free to point out if something's missing

Thanks!

Note: See TracTickets for help on using tickets.