WordPress.org

Make WordPress Core

Ticket #8805: 8805.2.diff

File 8805.2.diff, 698 bytes (added by CharlesClarkson, 6 years ago)

Patch for corrections to the phpdoc.

Line 
1Index: post.php
2===================================================================
3--- post.php    (revision 10830)
4+++ post.php    (working copy)
5
6@@ -2073,14 +2073,11 @@
7 /**
8  * Order the pages with children under parents in a flat list.
9  *
10- * Fetches the pages returned as a FLAT list, but arranged in order of their
11- * hierarchy, i.e., child parents immediately follow their parents.
12- *
13  * @since 2.0.0
14  *
15  * @param array $posts Posts array.
16  * @param int $parent Parent page ID.
17- * @return array
18+ * @return array A list arranged by hierarchy. Children immediately follow their parents.
19  */
20 function get_page_hierarchy($posts, $parent = 0) {
21        $result = array ( );