WordPress.org

Make WordPress Core

Ticket #26284: getpageuri.diff

File getpageuri.diff, 558 bytes (added by pollett, 8 years ago)
  • wp-includes/post.php

     
    36263626 *
    36273627 * @since 1.5.0
    36283628 *
    3629  * @param mixed $page Page object or page ID.
     3629 * @param int|object $page Page ID or page object. Optional, default is the current page from the loop.
    36303630 * @return string|false Page URI, false on error.
    36313631 */
    3632 function get_page_uri( $page ) {
     3632function get_page_uri( $page = null ) {
    36333633        $page = get_post( $page );
    36343634
    36353635        if ( ! $page )