WordPress.org

Make WordPress Core

Changeset 19283


Ignore:
Timestamp:
11/14/2011 09:32:56 PM (9 years ago)
Author:
duck_
Message:

Don't pass $post_type as get_page()'s $filter argument. Copy-and-paste error. Removal improves get_page_by_path() performance dramatically by stopping sanitize_post() being called. Fixes #19175.

File:
1 edited

Legend:

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

    r19234 r19283  
    31823182
    31833183    if ( $foundid )
    3184         return get_page($foundid, $output, $post_type);
     3184        return get_page( $foundid, $output );
    31853185
    31863186    return null;
Note: See TracChangeset for help on using the changeset viewer.