From 9f9d9a8d9eba6ff7258b93ad48a155be8e4d718c Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 22 Mar 2007 01:04:19 +0000 Subject: [PATCH] Cast to int. Props xknown. fixes #4012 for trunk. git-svn-id: http://svn.automattic.com/wordpress/trunk@5078 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 79053117d..873bca517 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -117,6 +117,7 @@ function post_permalink($post_id = 0, $mode = '') { // $mode legacy function get_page_link($id = false) { global $post; + $id = (int) $id; if ( !$id ) $id = $post->ID;