From 254e21a8fdd47e91ed394d26a14d226e3867e7ae Mon Sep 17 00:00:00 2001 From: Pierre Lannoy Date: Fri, 13 Sep 2019 10:25:12 +0200 Subject: [PATCH] Ready to release 1.4.0 on wp.org. --- CHANGELOG.md | 2 +- decalog.php | 2 +- includes/listeners/class-corelistener.php | 13 ----- init.php | 2 +- languages/decalog.pot | 58 +++++++++++------------ readme.txt | 2 +- 6 files changed, 33 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca6bb166..ea48dcb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to **DecaLog** is documented in this *changelog*. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **DecaLog** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [1.4.0] - 2019-09-13 ### Added - Full support for [User Switching](https://wordpress.org/plugins/user-switching/) plugin. - New events in core listener for posts (trashed, untrashed, drafted, draft saved, published, privately published, scheduled, unscheduled, pending review). diff --git a/decalog.php b/decalog.php index ac5e72e5..dd742b2f 100644 --- a/decalog.php +++ b/decalog.php @@ -10,7 +10,7 @@ * Plugin Name: DecaLog * Plugin URI: https://github.com/Pierre-Lannoy/wp-decalog * Description: Capture and log events on your site. View them in your dashboard and send them to logging services. - * Version: 1.3.0 + * Version: 1.4.0 * Author: Pierre Lannoy * Author URI: https://pierre.lannoy.fr * License: GPLv3 diff --git a/includes/listeners/class-corelistener.php b/includes/listeners/class-corelistener.php index 441c0902..2824b966 100644 --- a/includes/listeners/class-corelistener.php +++ b/includes/listeners/class-corelistener.php @@ -629,18 +629,6 @@ public function transition_comment_status( $new, $old, $comment ) { if ( isset( $this->logger ) ) { $this->logger->info( sprintf( 'Comment %s: %s.', $action, Comment::get_full_comment_name( $comment ) ) ); } - - -/* - - if ( isset( $this->logger ) ) { - if ( 'approved' === $new_status ) { - $this->logger->info( sprintf( 'Comment approved: %s.', Comment::get_full_comment_name( $comment ) ) ); - } - if ( 'unapproved' === $new_status ) { - $this->logger->info( sprintf( 'Comment unapproved: %s.', Comment::get_full_comment_name( $comment ) ) ); - } - }*/ } /** @@ -692,7 +680,6 @@ public function switch_theme( $new_name, $new_theme, $old_theme ) { } } - /** * "phpmailer_init" event. * diff --git a/init.php b/init.php index 605eddf8..e55f273f 100644 --- a/init.php +++ b/init.php @@ -12,7 +12,7 @@ define( 'DECALOG_PRODUCT_SHORTNAME', 'DecaLog' ); define( 'DECALOG_PRODUCT_ABBREVIATION', 'decalog' ); define( 'DECALOG_SLUG', 'decalog' ); -define( 'DECALOG_VERSION', '1.3.0' ); +define( 'DECALOG_VERSION', '1.4.0' ); define( 'DECALOG_CODENAME', '"-"' ); define( 'DECALOG_CRON_NAME', 'decalog_clean_database' ); diff --git a/languages/decalog.pot b/languages/decalog.pot index 22886ca2..cf83d479 100644 --- a/languages/decalog.pot +++ b/languages/decalog.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: DecaLog\n" -"POT-Creation-Date: 2019-09-11 13:12+0200\n" +"POT-Creation-Date: 2019-09-13 09:40+0200\n" "PO-Revision-Date: 2019-07-08 14:07+0200\n" "Last-Translator: Pierre Lannoy \n" "Language-Team: Pierre Lannoy \n" @@ -63,7 +63,7 @@ msgstr "" msgid "Support" msgstr "" -#: admin/class-decalog-admin.php:203 includes/features/class-events.php:683 +#: admin/class-decalog-admin.php:203 includes/features/class-events.php:685 msgid "Site" msgstr "" @@ -410,7 +410,7 @@ msgstr "" #: admin/partials/decalog-admin-view-events-bottom.php:21 #: admin/partials/decalog-admin-view-events-top.php:21 -#: includes/features/class-events.php:646 +#: includes/features/class-events.php:648 msgid "Apply" msgstr "" @@ -496,17 +496,17 @@ msgid "Site ID %s" msgstr "" #: includes/features/class-events.php:214 -#: includes/features/class-eventviewer.php:337 +#: includes/features/class-eventviewer.php:336 msgid "Anonymous user" msgstr "" #: includes/features/class-events.php:218 -#: includes/features/class-eventviewer.php:341 +#: includes/features/class-eventviewer.php:340 msgid "Pseudonymized user" msgstr "" #: includes/features/class-events.php:221 -#: includes/features/class-eventviewer.php:344 +#: includes/features/class-eventviewer.php:343 #, php-format msgid "User ID %s" msgstr "" @@ -540,33 +540,33 @@ msgstr "" msgid "Show %d lines per page" msgstr "" -#: includes/features/class-events.php:640 +#: includes/features/class-events.php:642 msgid "Extra columns" msgstr "" -#: includes/features/class-events.php:678 -#: includes/features/class-eventviewer.php:250 +#: includes/features/class-events.php:680 +#: includes/features/class-eventviewer.php:249 #: includes/features/class-inlinehelp.php:351 msgid "Event" msgstr "" -#: includes/features/class-events.php:679 +#: includes/features/class-events.php:681 msgid "Time" msgstr "" -#: includes/features/class-events.php:680 +#: includes/features/class-events.php:682 msgid "Message" msgstr "" -#: includes/features/class-events.php:682 +#: includes/features/class-events.php:684 msgid "Source" msgstr "" -#: includes/features/class-events.php:684 +#: includes/features/class-events.php:686 msgid "User" msgstr "" -#: includes/features/class-events.php:685 +#: includes/features/class-events.php:687 msgid "Remote IP" msgstr "" @@ -626,63 +626,63 @@ msgstr "" msgid "A panic condition. WordPress is unusable." msgstr "" -#: includes/features/class-eventviewer.php:135 +#: includes/features/class-eventviewer.php:134 msgid "Boxes" msgstr "" -#: includes/features/class-eventviewer.php:210 +#: includes/features/class-eventviewer.php:209 msgid "Forbidden" msgstr "" -#: includes/features/class-eventviewer.php:212 +#: includes/features/class-eventviewer.php:211 msgid "The event or events log you tried to access is out of your scope." msgstr "" -#: includes/features/class-eventviewer.php:213 +#: includes/features/class-eventviewer.php:212 msgid "" "If you think this is an error, please contact the network administrator " "with these details:" msgstr "" -#: includes/features/class-eventviewer.php:216 +#: includes/features/class-eventviewer.php:215 #, php-format msgid "Events log: %s" msgstr "" -#: includes/features/class-eventviewer.php:218 +#: includes/features/class-eventviewer.php:217 #, php-format msgid "Event: %s" msgstr "" -#: includes/features/class-eventviewer.php:252 +#: includes/features/class-eventviewer.php:251 #: includes/features/class-inlinehelp.php:353 #: includes/features/class-processortypes.php:64 msgid "HTTP request" msgstr "" -#: includes/features/class-eventviewer.php:253 +#: includes/features/class-eventviewer.php:252 #: includes/features/class-inlinehelp.php:354 #: includes/features/class-processortypes.php:51 msgid "PHP introspection" msgstr "" #. translators: like in the sentence "PHP backtrace" or "WordPress backtrace" -#: includes/features/class-eventviewer.php:256 -#: includes/features/class-eventviewer.php:258 +#: includes/features/class-eventviewer.php:255 +#: includes/features/class-eventviewer.php:257 #: includes/features/class-inlinehelp.php:356 #, php-format msgid "%s backtrace" msgstr "" -#: includes/features/class-eventviewer.php:322 +#: includes/features/class-eventviewer.php:321 msgid "Code:" msgstr "" -#: includes/features/class-eventviewer.php:365 +#: includes/features/class-eventviewer.php:364 msgid "obfuscated IP" msgstr "" -#: includes/features/class-eventviewer.php:368 +#: includes/features/class-eventviewer.php:367 #, php-format msgid "from %s." msgstr "" @@ -996,7 +996,7 @@ msgstr "" #: includes/features/class-inlinehelp.php:144 msgid "" "Can't set loggers, can only view events regarding their own sites in all " -"WordPress events log." +"authorized WordPress events log." msgstr "" #: includes/features/class-inlinehelp.php:157 @@ -1322,7 +1322,7 @@ msgstr "" msgid "%2$s %3$s%4$s by %5$s (%6$s)" msgstr "" -#: includes/listeners/class-corelistener.php:38 +#: includes/listeners/class-corelistener.php:39 msgid "WordPress core" msgstr "" diff --git a/readme.txt b/readme.txt index bf9506eb..d701f59e 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: logs, error reporting, monitoring, site health, logging Requires at least: 5.2 Requires PHP: 7.2 Tested up to: 5.2 -Stable tag: 1.3.0 +Stable tag: 1.4.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html