Just released an update to Simple History for @WordPress . Version 2.29 adds and fixes some misc things, like compatibility with PHP 7.3. See changelog in screenshot or on site https://t.co/ngKJKvuAqB (and yes, I failed to write the markdown correctly apparently.. ) pic.twitter.com/GvAFdC4YhG
— Pär Thernström 🇺🇦 (@eskapism) December 18, 2018
Changelog for this release
2.29 (DECEMBER 2018)
- Make log welcome message translateable.
- Add two filters to make it more ease to control via filters if a logger and the combination logger + message should be logged.
- “simple_history/log/do_log/{$this->slug}” controls if any messages for a specific logger should be logged. Simply return false to this filter to disable all logging to that logger.
- “simple_history/log/do_log/{$this->slug}/{$message_key}” controls if a specific message for a specific logger should be logged. Simply return false to this filter to disable all logging to that logger.
Code examples for the two filters above:
// Disable logging of any user message, i.e. any message from the logger SimpleUserLogger. add_filter( ‘simple_history/log/do_log/SimpleUserLogger’, ‘__return_false’ ); // Disable logging of updated posts, i.e. the message “post_updated” from the logger SimplePostLogger. add_filter( ‘simple_history/log/do_log/SimplePostLogger/post_updated’, ‘__return_false’ );
- Fix notice in Redirection plugin logger due because redirection plugin can have multiple target types. Props @MaximVanhove.
- Fix warning because of missing logging messages in the categories/tags logger. Props @JeroenSormani.
- Fix warning in the next version of PHP, PHP 7.3.