Changeset 5045
- Timestamp:
- 03/16/2007 08:04:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r5020 r5045 423 423 global $wp_rewrite; 424 424 425 $qstr = wp_specialchars($_SERVER['REQUEST_URI']);425 $qstr = $_SERVER['REQUEST_URI']; 426 426 427 427 $page_querystring = "paged"; … … 491 491 } 492 492 493 function next_posts($max_page = 0) { // original by cfactor at cooltux.org493 function get_next_posts_page_link($max_page = 0) { 494 494 global $paged, $pagenow; 495 495 … … 499 499 $nextpage = intval($paged) + 1; 500 500 if ( !$max_page || $max_page >= $nextpage ) 501 echo get_pagenum_link($nextpage); 502 } 501 return get_pagenum_link($nextpage); 502 } 503 } 504 505 function next_posts($max_page = 0) { 506 echo attribute_escape(get_next_posts_page_link($max_page)); 503 507 } 504 508 … … 518 522 } 519 523 520 521 function previous_posts() { // original by cfactor at cooltux.org 524 function get_previous_posts_page_link() { 522 525 global $paged, $pagenow; 523 526 … … 526 529 if ( $nextpage < 1 ) 527 530 $nextpage = 1; 528 echo get_pagenum_link($nextpage); 529 } 530 } 531 531 return get_pagenum_link($nextpage); 532 } 533 } 534 535 function previous_posts() { 536 echo attribute_escape(get_previous_posts_page_link()); 537 } 532 538 533 539 function previous_posts_link($label='« Previous Page') {
Note: See TracChangeset
for help on using the changeset viewer.