Make WordPress Core

Ticket #4012: link-template.diff

File link-template.diff, 305 bytes (added by xknown, 18 years ago)

Cast to int page id

  • link-template.php

     
    117117function get_page_link($id = false) {
    118118        global $post;
    119119
     120        $id = (int) $id;
    120121        if ( !$id )
    121122                $id = $post->ID;
    122123