#2382 closed defect (bug) (fixed)
Edit and Delete buttons do not work within the Manage's search results page
Reported by: | wellsdjohn | Owned by: | westi |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | Administration | Keywords: | search result edit delete bg|has-patch bg|commit |
Focuses: | 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)
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.