[wp-trac] Re: [WordPress Trac] #7533: is_page() Returns false Always In Search Results

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 17 12:55:56 GMT 2008


#7533: is_page() Returns false Always In Search Results
---------------------------+------------------------------------------------
 Reporter:  GamerZ         |        Owner:  anonymous
     Type:  defect         |       Status:  new      
 Priority:  high           |    Milestone:  2.6.2    
Component:  Template       |      Version:  2.6.1    
 Severity:  trivial        |   Resolution:           
 Keywords:  is_home, home  |  
---------------------------+------------------------------------------------
Comment (by GamerZ):

 Yeap, I posted this issue because one of my users inserted the code of my
 WP-Print and WP-Email into the search.php and when the results is a page
 instead of a post, the plugin will return a 404 upon clicking the
 email/print link as is_page() returns false.

 Search results may consist of both posts and pages and there is not way to
 tell them apart at the moment I guess.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7533#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list