From 5e7cc6634bb1e52cfa736b9bf80362c38196313d Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 22 Mar 2007 03:11:41 +0000 Subject: [PATCH] Cast to int. Props xknown. fixes #4012 for 2.0 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5080 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-links.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index c1c9fc38c4..ec233c8057 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -87,6 +87,7 @@ function get_permalink($id = 0) { function get_page_link($id = false) { global $post, $wp_rewrite; + $id = (int) $id; if ( !$id ) $id = $post->ID;