Make WordPress Core


Ignore:
Timestamp:
12/11/2015 03:49:40 AM (11 years ago)
Author:
ericlewis
Message:

Add inline documentation for get_page_by_path().

Fixes #34964.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r35817 r35861  
    41234123                        $count = 0;
    41244124                        $p = $page;
     4125
     4126                        /*
     4127                         * Loop through the given path parts from right to left,
     4128                         * ensuring each matches the post ancestry.
     4129                         */
    41254130                        while ( $p->post_parent != 0 && isset( $pages[ $p->post_parent ] ) ) {
    41264131                                $count++;
Note: See TracChangeset for help on using the changeset viewer.