WordPress.org

Make WordPress Core

Changeset 18627


Ignore:
Timestamp:
08/31/2011 06:46:16 AM (8 years ago)
Author:
markjaquith
Message:

Cast to array in get_page_by_path() foreach

File:
1 edited

Legend:

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

    r18613 r18627  
    31623162
    31633163    $foundid = 0;
    3164     foreach ( $pages as $page ) {
     3164    foreach ( (array) $pages as $page ) {
    31653165        if ( $page->post_name == $revparts[0] ) {
    31663166            $count = 0;
Note: See TracChangeset for help on using the changeset viewer.