Changeset 5047 for branches/2.0/wp-includes/template-functions-links.php
- Timestamp:
- 03/16/2007 08:04:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/template-functions-links.php
r3823 r5047 379 379 global $wp_rewrite; 380 380 381 $qstr = wp_specialchars($_SERVER['REQUEST_URI']);381 $qstr = $_SERVER['REQUEST_URI']; 382 382 383 383 $page_querystring = "paged"; … … 446 446 } 447 447 448 function next_posts($max_page = 0) { // original by cfactor at cooltux.org448 function get_next_posts_page_link($max_page = 0) { 449 449 global $paged, $pagenow; 450 450 … … 454 454 $nextpage = intval($paged) + 1; 455 455 if ( !$max_page || $max_page >= $nextpage ) 456 echo get_pagenum_link($nextpage); 457 } 456 return get_pagenum_link($nextpage); 457 } 458 } 459 460 function next_posts($max_page = 0) { 461 echo attribute_escape(get_next_posts_page_link($max_page)); 458 462 } 459 463 … … 480 484 } 481 485 482 483 function previous_posts() { // original by cfactor at cooltux.org 486 function get_previous_posts_page_link() { 484 487 global $paged, $pagenow; 485 488 … … 488 491 if ( $nextpage < 1 ) 489 492 $nextpage = 1; 490 echo get_pagenum_link($nextpage); 491 } 492 } 493 493 return get_pagenum_link($nextpage); 494 } 495 } 496 497 function previous_posts() { 498 echo attribute_escape(get_previous_posts_page_link()); 499 } 494 500 495 501 function previous_posts_link($label='« Previous Page') {
Note: See TracChangeset
for help on using the changeset viewer.