[wp-cvs] wordpress/wp-includes template-functions-general.php, 1.51, 1.52

Ryan Boren rboren at users.sourceforge.net
Sun Oct 3 17:07:56 UTC 2004


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

Modified Files:
	template-functions-general.php 
Log Message:
Fix wp_title() for pages. 

Index: template-functions-general.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-general.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** template-functions-general.php	30 Sep 2004 17:56:16 -0000	1.51
--- template-functions-general.php	3 Oct 2004 17:07:53 -0000	1.52
***************
*** 167,171 ****
  
      // If there's a post
!     if (is_single()) {
          $title = strip_tags($posts[0]->post_title);
          $title = apply_filters('single_post_title', $title);
--- 167,171 ----
  
      // If there's a post
!     if (is_single() || is_page()) {
          $title = strip_tags($posts[0]->post_title);
          $title = apply_filters('single_post_title', $title);




More information about the cvs mailing list