Changeset 2535
- Timestamp:
- 04/14/2005 04:24:22 AM (20 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r2523 r2535 253 253 $q['posts_per_page'] = get_settings('posts_per_rss'); 254 254 $q['what_to_show'] = 'posts'; 255 } 256 257 if (isset($q['page'])) { 258 $q['page'] = trim($q['page'], '/'); 259 $q['page'] = (int) $q['page']; 255 260 } 256 261 … … 1124 1129 $trackbackmatch = $match . $trackbackregex; 1125 1130 $trackbackquery = $trackbackindex . '?' . $query . '&tb=1'; 1126 $match = $match . '?([0-9]+)?/?$'; 1131 $match = rtrim($match, '/'); 1132 $match = $match . '(/[0-9]+)?/?$'; 1127 1133 $query = $index . '?' . $query . '&page=' . $this->preg_index($num_toks + 1); 1128 1134 } else { -
trunk/wp-includes/functions.php
r2527 r2535 880 880 $currentmonth = mysql2date('m', $post->post_date); 881 881 $numpages = 1; 882 $page = get_query_var('page'); 882 883 if (!$page) 883 884 $page = 1; 884 if (is set($p))885 if (is_single() || is_page()) 885 886 $more = 1; 886 887 $content = $post->post_content;
Note: See TracChangeset
for help on using the changeset viewer.