Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28422 closed defect (bug) (fixed)

get_children() has incorrect @return value

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Priority: normal Milestone: 4.0
Component: Posts, Post Types Version: 2.9
Severity: normal Keywords: good-first-bug has-patch
Cc: Focuses: docs

Description

get_children() always returns an array since [11756].

The documentation, however, still says it returns false on failure: tags/3.9.1/src/wp-includes/post.php#L310​.

Attachments (1)

28442.diff​ (743 bytes ) - added by ghost1227 12 years ago.

Download all attachments as: .zip

Change History (3)

@ghost1227
12 years ago

#1 @ghost1227
12 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 28677:

Correct @return value for get_children().

props ghost1227.
fixes #28422.

Note: See TracTickets for help on using tickets.