Changeset 1752 for trunk/wp-includes/template-functions-links.php
- Timestamp:
- 10/06/2004 02:18:37 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-links.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r1695 r1752 50 50 } 51 51 52 if ($idpost->post_status == 'static') { 53 return get_page_link(); 54 } 55 52 56 $permalink = get_settings('permalink_structure'); 53 57 54 58 if ('' != $permalink) { 55 if ($idpost->post_status == 'static')56 $permalink = page_permastruct();57 58 59 $unixtime = strtotime($idpost->post_date); 59 60 … … 79 80 } else { // if they're not using the fancy permalink option 80 81 $permalink = get_settings('home') . '/' . get_settings('blogfilename') . '?p=' . $idpost->ID; 81 if ($idpost->post_status == 'static')82 $permalink .= '&static=1';83 82 return $permalink; 84 83 } 84 } 85 86 function get_page_link($id = false) { 87 global $post; 88 89 if (! $id) { 90 $id = $post->ID; 91 } 92 93 $permalink = get_settings('permalink_structure'); 94 95 if ('' != $permalink) { 96 $link = get_page_uri($id); 97 $link = get_settings('home') . "/$link/"; 98 } else { 99 $link = get_settings('home') . "/index.php?p=$id&static=1"; 100 } 101 102 return $link; 85 103 } 86 104
Note: See TracChangeset
for help on using the changeset viewer.