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

git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-22 01:05:11 +00:00
parent f060b92e90
commit 20fe71511c

View File

@ -93,6 +93,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;