#2382 closed defect (bug) (fixed)
Edit and Delete buttons do not work within the Manage's search results page
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0 |
| Severity: | normal | Keywords: | search result edit delete bg|has-patch bg|commit |
| Cc: |
Description
Bug Description
The Edit and Delete buttons do not work on posts that are returned from a search query within the Admin/Manage section.
Replicate Bug:
- Log into wp-admin
- Click on "Manage"
- Enter a search term in the "Search Posts..." field (choose a term that will return at least one result)
- The Edit and Delete buttons for each found post does not work.
Bug Location:
Lines 53, 54 within /wp-admin/edit-pages.php
Bug Fix:
The links built for editing and deleting are not including the post's ID value. Instead of using:
53: ...?action=edit&post=$id' class='edit'>... 54: ...?action=delete&post=$id' class='delete'...
It should read:
53: ...?action=edit&post=$post->ID' class='edit'>... 54: ...?action=delete&post=$post->ID' class='delete'...
Attachments (1)
Change History (7)
- Keywords bg|has-patch added
- Milestone set to 2.1
- Owner changed from anonymous to westi
- Status changed from new to assigned
comment:2
markjaquith — 7 years ago
- Keywords bg|commit added
- Resolution set to fixed
- Status changed from assigned to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

This looks good.
I've turned the changes into a patch and caught a couple more that needed changing.