Changeset 5087 for trunk/wp-includes/link-template.php
- Timestamp:
- 03/23/2007 12:59:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r5078 r5087 120 120 $id = (int) $id; 121 121 if ( !$id ) 122 $id = $post->ID;122 $id = (int) $post->ID; 123 123 124 124 if ( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) … … 135 135 136 136 if ( !$id ) 137 $id = $post->ID;137 $id = (int) $post->ID; 138 138 139 139 $pagestruct = $wp_rewrite->get_page_permastruct(); … … 157 157 158 158 if (! $id) { 159 $id = $post->ID;159 $id = (int) $post->ID; 160 160 } 161 161 … … 260 260 261 261 if ( empty($post_id) ) 262 $post_id = $id;262 $post_id = (int) $id; 263 263 264 264 if ( '' != get_option('permalink_structure') ) {
Note: See TracChangeset
for help on using the changeset viewer.