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:
parent
87b8d6d558
commit
61a985f409
|
@ -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