get_permalink() shouldn't work for posts that don't exist
|Reported by:||Viper007Bond||Owned by:|
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.
Change History (3)
Note: See TracTickets for help on using tickets.