Cast to int. Props xknown. fixes #4012 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@5078 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-22 01:04:19 +00:00
parent 87b8d6d558
commit 61a985f409
1 changed files with 1 additions and 0 deletions

View File

@ -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;