Changeset 5046
- Timestamp:
- 03/16/2007 08:04:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/link-template.php
r4721 r5046 380 380 global $wp_rewrite; 381 381 382 $qstr = wp_specialchars($_SERVER['REQUEST_URI']);382 $qstr = $_SERVER['REQUEST_URI']; 383 383 384 384 $page_querystring = "paged"; … … 447 447 } 448 448 449 function next_posts($max_page = 0) { // original by cfactor at cooltux.org449 function get_next_posts_page_link($max_page = 0) { 450 450 global $paged, $pagenow; 451 451 … … 455 455 $nextpage = intval($paged) + 1; 456 456 if ( !$max_page || $max_page >= $nextpage ) 457 echo get_pagenum_link($nextpage); 458 } 457 return get_pagenum_link($nextpage); 458 } 459 } 460 461 function next_posts($max_page = 0) { 462 echo attribute_escape(get_next_posts_page_link($max_page)); 459 463 } 460 464 … … 474 478 } 475 479 476 477 function previous_posts() { // original by cfactor at cooltux.org 480 function get_previous_posts_page_link() { 478 481 global $paged, $pagenow; 479 482 … … 482 485 if ( $nextpage < 1 ) 483 486 $nextpage = 1; 484 echo get_pagenum_link($nextpage); 485 } 486 } 487 487 return get_pagenum_link($nextpage); 488 } 489 } 490 491 function previous_posts() { 492 echo attribute_escape(get_previous_posts_page_link()); 493 } 488 494 489 495 function previous_posts_link($label='« Previous Page') {
Note: See TracChangeset
for help on using the changeset viewer.