mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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) {
|
||||
global $post;
|
||||
|
||||
$id = (int) $id;
|
||||
if ( !$id )
|
||||
$id = $post->ID;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user