WordPress.org

Make WordPress Core

Ticket #24237: 24237.patch

File 24237.patch, 425 bytes (added by chriseverson, 7 years ago)
  • wp-includes/post.php

     
    41804180 * @return string|false Page URI, false on error.
    41814181 */
    41824182function get_page_uri( $page ) {
    4183         $page = get_post( $page );
    41844183
     4184        if( ! is_object( $page ) ) {
     4185                $page = get_post( $page );
     4186        }
     4187
    41854188        if ( ! $page )
    41864189                return false;
    41874190