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's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.0 Priority: normal
Severity: normal Version: 2.9
Component: Posts, Post Types Keywords: good-first-bug has-patch
Focuses: docs Cc:

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 set to fixed
  • Status changed from new to closed

In 28677:

Correct @return value for get_children().

props ghost1227.
fixes #28422.

Note: See TracTickets for help on using tickets.