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'...