Changeset 1531
- Timestamp:
- 08/11/04 01:55:34 (4 years ago)
- Files:
-
- trunk/wp-blog-header.php (modified) (1 diff)
- trunk/wp-includes/classes.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (2 diffs)
- trunk/wp-includes/template-functions-links.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-blog-header.php
r1527 r1531 51 51 } 52 52 53 $wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static' );53 $wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name', 'static', 'pagename'); 54 54 55 55 for ($i=0; $i<count($wpvarstoreset); $i += 1) { trunk/wp-includes/classes.php
r1527 r1531 221 221 $q['name'] = preg_replace('/[^a-z0-9-_]/', '', $q['name']); 222 222 $where .= " AND post_name = '" . $q['name'] . "'"; 223 } 223 } else if ('' != $q['pagename']) { 224 // If pagename is set, set static to true and set name to pagename. 225 $q['pagename'] = preg_replace('/[^a-z0-9-_]/', '', $q['pagename']); 226 $q['name'] = $q['pagename']; 227 $q['static'] = true; 228 $where .= " AND post_name = '" . $q['pagename'] . "'"; 229 } 230 224 231 225 232 if ('' != $q['w']) { trunk/wp-includes/functions.php
r1527 r1531 1205 1205 '%postname%', 1206 1206 '%post_id%', 1207 '%category%',1208 '%author%',1207 '%category%', 1208 '%author%', 1209 1209 '%pagename%' 1210 1210 ); … … 1235 1235 'name=', 1236 1236 'p=', 1237 'category_name=',1238 'author_name=',1239 ' static=1&name=',1237 'category_name=', 1238 'author_name=', 1239 'pagename=', 1240 1240 ); 1241 1241 trunk/wp-includes/template-functions-links.php
r1527 r1531 35 35 '%monthnum%', 36 36 '%day%', 37 '%hour%',38 '%minute%',39 '%second%',37 '%hour%', 38 '%minute%', 39 '%second%', 40 40 '%postname%', 41 41 '%post_id%',
