[wp-cvs] wordpress/wp-includes classes.php, 1.23, 1.24 functions.php, 1.211, 1.212

Ryan Boren rboren at users.sourceforge.net
Sat Nov 20 18:32:34 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26884

Modified Files:
	classes.php functions.php 
Log Message:
Add is_paged().

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.211
retrieving revision 1.212
diff -C2 -d -r1.211 -r1.212
*** functions.php	20 Nov 2004 04:28:36 -0000	1.211
--- functions.php	20 Nov 2004 18:32:31 -0000	1.212
***************
*** 1987,1990 ****
--- 1987,1996 ----
  }
  
+ function is_paged () {
+     global $wp_query;
+ 
+     return $wp_query->is_paged;
+ }
+ 
  function get_query_var($var) {
    global $wp_query;

Index: classes.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/classes.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** classes.php	27 Oct 2004 23:58:40 -0000	1.23
--- classes.php	20 Nov 2004 18:32:31 -0000	1.24
***************
*** 42,45 ****
--- 42,46 ----
  		$this->is_home = false;
  		$this->is_404 = false;
+ 		$this->is_paged = false;
  
  		unset($this->posts);
***************
*** 172,176 ****
  		}
  
! 		if ( ($this->is_date || $this->is_author || $this->is_category)
  				 && (! ($this->is_single || $this->is_page)) ) {
  			$this->is_archive = true;
--- 173,181 ----
  		}
  
! 		if ('' != $qv['paged']) {
! 			$this->is_paged = true;
! 		}
! 
! 		if ( ($this->is_date || $this->is_author || $this->is_category || $this->is_paged)
  				 && (! ($this->is_single || $this->is_page)) ) {
  			$this->is_archive = true;




More information about the cvs mailing list