Opened 16 years ago
Closed 16 years ago
#13212 closed defect (bug) (fixed)
shortlink wp_get_shortlink fix
| Reported by: | ShaneF | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | shortlink has-patch commit |
| Cc: | Focuses: |
Description
If inside the loop:
echo wp_get_shortlink();
..it does not return anything. Have to add $id to the global to fix that.
Fixed in patch. :)
Attachments (2)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Wouldn't that global stomp the $id arg. Attached an alternative patch that makes use of get_post()'s ability to fetch the current post when passed 0. Untested.