diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 79053117da..873bca5179 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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;