I’m running WordPress Logging Service in WordPress 3.6 and for the most part, it works fine. The main issue I have is when I try to delete log messages in bulk. Here is what I do and the results:
1) Login to WordPress
2) Go to “Dashboard/System Logs”
3) I see the log entries shown
4) I click “Bulk actions” and choose “Delete”
5) I select all of the log entries
6) I click “Apply”
7) I’m taken back to the Dashboard “Home” page
At this point, if I click “Dashboard/System Logs” again, the log entries I thought I deleted are no longer shown.
I did some research and found a solution which seems to work for me. In the “Custom List Table” example plugin, I found the HTML form used and it contained a relevant HTML comment:
<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions --> <form id="movies-filter" method="get"> <strong> <!-- For plugins, we also need to ensure that the form posts back to our current page --> <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /></strong> <!-- Now we can render the completed list table --> <?php $testListTable->display() ?> </form>
The hidden INPUT field with name “page” is what I added to admin-overview.php and now when I perform the steps above, the log entries are deleted in step #6 and I remain on the “WordPress Logging Service” page, as expected.
I have screen shots I can send via e-mail, if necessary.
- The topic ‘WordPress Logging Service doesn't delete log entries in bulk’ is closed to new replies.