mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
Cast to int. Props xknown. fixes #4012 for 2.0
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d05906809b
commit
5e7cc6634b
@ -87,6 +87,7 @@ function get_permalink($id = 0) {
|
||||
function get_page_link($id = false) {
|
||||
global $post, $wp_rewrite;
|
||||
|
||||
$id = (int) $id;
|
||||
if ( !$id )
|
||||
$id = $post->ID;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user