[wp-trac] [WordPress Trac] #4834: get_permalink() shouldn't work for posts that don't exist

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 05:44:18 GMT 2007


#4834: get_permalink() shouldn't work for posts that don't exist
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous            
     Type:  defect        |      Status:  new                  
 Priority:  low           |   Milestone:  2.4 (next)           
Component:  Template      |     Version:  2.3                  
 Severity:  minor         |    Keywords:  has-patch 2nd-opinion
--------------------------+-------------------------------------------------
 `get_permalink('bananas')` shouldn't return a URL (it currently does).
 Attached patch adds a quick check to see that the entered post ID actually
 exists and returns `FALSE` if it doesn't.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4834>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list