From b48e6bc8762854b59515c18a3358700d2d07c2b1 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 22 Mar 2007 13:20:00 +0000 Subject: WP Merge to rev 5081 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@931 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/link-template.php | 1 + 1 file changed, 1 insertion(+) (limited to 'wp-includes/link-template.php') diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 7905311..873bca5 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; -- cgit