Make WordPress Core

Opened 6 years ago

Last modified 14 months ago

#51768 new defect (bug)

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

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

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
6 years ago

  • Focuses docs added

#2 @SergeyBiryukov
6 years ago

  • Description modified (diff)

#3 @SergeyBiryukov
6 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.


14 months ago
#4

  • Keywords has-patch added

#5 @yashjawale
14 months 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.