Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 23175)
+++ wp-includes/post.php	(working copy)
@@ -3581,8 +3581,8 @@
  * @return string Page URI.
  */
 function get_page_uri($page) {
-	if ( ! is_object($page) )
-		$page = get_post( $page );
+	$page = get_post( $page );
+
 	$uri = $page->post_name;
 
 	foreach ( $page->ancestors as $parent ) {
