Commit Graph

28 Commits

Author SHA1 Message Date
Yash Kapoor df8c0855a4
Added escaping. 2019-09-11 15:37:39 +05:30
Marco Almeida 3b7be608e4
Display Status > Log timestamp with the Y-m-d H:i:s format
Display WooCommerce > Statis > Log timestamp, when using WC_Log_Handler_DB, with the Y-m-d H:i:s format instead of the WordPress global date and time format options, because we need more detail on the shown timestamps and that might not be compatible with what we want for our global options.
2019-06-13 10:58:41 +01:00
Khan M Rashedun-Naby 7d889b472a Approach Cleaned 2018-05-13 23:40:07 +06:00
Khan M Rashedun-Naby 845097f42a Inverted the condition based returns. 2018-04-24 09:21:33 +06:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Grzegorz Rola 0c9ad20986 wp_unslash() needs to always comes first 2017-11-06 19:10:33 +01:00
Grzegorz Rola 4f4a3460a3 Security fix 2017-11-06 18:50:26 +01:00
Grzegorz Rola d8a6cc6eb2 Ability to search in DB logs. 2017-11-04 16:09:54 +01:00
Scott Rees b7b75c83f7 Fix #14967 by adding log_id as the secondary sorting column to log list. 2017-05-12 10:22:31 -07:00
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