#4834 closed defect (bug) (fixed)
get_permalink() shouldn't work for posts that don't exist
| Reported by: | Viper007Bond | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Template | Version: | 2.3 |
| Severity: | minor | Keywords: | has-patch 2nd-opinion |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [5956]) Don't return permalink for non-existent post. Props Viper007Bond. fixes #4834