Cast to int. Props xknown. fixes #4012 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b5a124634e
commit
9f9d9a8d9e
|
@ -117,6 +117,7 @@ function post_permalink($post_id = 0, $mode = '') { // $mode legacy
|
||||||
function get_page_link($id = false) {
|
function get_page_link($id = false) {
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
|
$id = (int) $id;
|
||||||
if ( !$id )
|
if ( !$id )
|
||||||
$id = $post->ID;
|
$id = $post->ID;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue