mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 15:19:15 +00:00
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:
parent
f060b92e90
commit
20fe71511c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user