#4834 closed defect (bug) (fixed)
get_permalink() shouldn't work for posts that don't exist
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | low |
Severity: | minor | Version: | 2.3 |
Component: | Template | Keywords: | has-patch 2nd-opinion |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [5956]) Don't return permalink for non-existent post. Props Viper007Bond. fixes #4834