Opened 3 years ago
Closed 3 years ago
#11688 closed defect (bug) (fixed)
Wrong preview link for draft/preview on admin post index
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | Administration | Version: | 2.9 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: |
Description
The preview link on /wp-admin/edit.php for $post->post_status 'pending' or 'draft' is generated without the GET variable "preview".
The attached patch simply adds '&preview=true' to wp-admin/includes/template.php in the Preview link statement.
I'm not sure about Wordpress coding standards, but I hope the way I added the 'preview' variable works. Otherwise please modify it to meet the coding standards.
Attachments (2)
Change History (4)
- Keywords has-patch added; preview link admin removed
- Milestone changed from Unassigned to 3.0
- Version set to 2.9
Nice find.
We have add_query_arg() to handle this. I've uploaded a second patch.
comment:2
automattor — 3 years ago
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Patch to fix preview link generation in wp-admin/includes/template.php