Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (18 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r5078 r5087  
    120120    $id = (int) $id;
    121121    if ( !$id )
    122         $id = $post->ID;
     122        $id = (int) $post->ID;
    123123
    124124    if ( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') )
     
    135135
    136136    if ( !$id )
    137         $id = $post->ID;
     137        $id = (int) $post->ID;
    138138
    139139    $pagestruct = $wp_rewrite->get_page_permastruct();
     
    157157
    158158    if (! $id) {
    159         $id = $post->ID;
     159        $id = (int) $post->ID;
    160160    }
    161161
     
    260260
    261261    if ( empty($post_id) )
    262         $post_id = $id;
     262        $post_id = (int) $id;
    263263
    264264    if ( '' != get_option('permalink_structure') ) {
Note: See TracChangeset for help on using the changeset viewer.