Claudio Sanches
5bcace31fc
Fixed "singular" and "plural" parameters of WP_List_Table instances
...
Both should be slugs and not translatable.
Fixes #13954
2017-04-05 18:15:40 -03:00
Jon Surrell
f1a90d6b05
Move level filters to dropdown
...
Drop table list "views" and use dropdown filter for sources and levels.
2017-01-08 19:32:53 +01:00
Jon Surrell
a992084776
Sort by timestamp by default
2017-01-08 18:55:21 +01:00
Jon Surrell
0aab3282f4
Add more sanitizing
...
These values should be controlled, but additional sanitization is preferable.
2017-01-08 18:53:01 +01:00
Jon Surrell
d38e22329f
Replace count with empty check
2017-01-05 16:33:58 +01:00
Jon Surrell
e6bcc1aeb6
Replace 'All' with 'All sources' in dropdown
2017-01-05 16:23:03 +01:00
Jon Surrell
14e5bdcf91
Fix typos
2017-01-02 14:51:56 +01:00
Jon Surrell
b4b5c5124a
Refactor WC_Admin_Log_Table_List::prepare_items
...
Extract several methods to simplify structure and flow
2017-01-02 14:42:13 +01:00
Jon Surrell
90ef632fa5
Colorize leveles in db log table
2016-12-29 12:03:59 +01:00
Jon Surrell
e4681d268b
Remove logging
2016-12-29 11:58:43 +01:00
Jon Surrell
269addd9f8
Rework db log table
...
Change tag from text search to select list.
Flatten and clean up query logic.
Add required methods for source <select>.
2016-12-29 11:58:43 +01:00
Jon Surrell
588b1c2267
Format date in log viewer table
2016-12-29 11:58:43 +01:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
970a33e182
Cleanup log list table view
...
Format log timestamp.
Add is_valid_level check to $_REQUEST level filter.
General cleanup: formatting, layout, commentary.
2016-12-29 11:58:43 +01:00
Jon Surrell
5f24eca7e2
Add delete to db log viewer table
...
Clean up some nonce logic.
Use a single <form> containing log table.
2016-12-29 11:58:43 +01:00
Jon Surrell
080cf8e436
Store log levels as integer representations in database
...
This will allow indexed ordering by severity.
Add WC_Log_Levels::get_severity_level method to translate severity
integers to level strings. The inverse of WC_Log_Levels::get_level_severity.
Add context to tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
7a3c6bcc0c
Fix phpcs issues
2016-12-29 11:58:42 +01:00
Jon Surrell
d6a6b8771d
Add level views to db log table
2016-12-29 11:58:42 +01:00
Jon Surrell
bc3f788507
Implements database log viewer
2016-12-29 11:58:42 +01:00