From 61a985f40997f53cd978fabdbeda16e67840c45b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 22 Mar 2007 01:04:19 +0000 Subject: [PATCH] Cast to int. Props xknown. fixes #4012 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@5078 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 79053117da..873bca5179 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;