This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Shut I18n Doing It Wrong Messages | |
| * Description: Filters _load_textdomain_just_in_time doing it wrong messages in 6.7 | |
| * Author: Move Your Digital, Inc. | |
| * Author URI: https://moveyourdigital.com | |
| * Version: 0.0.1 | |
| * | |
| * @package SIDIWM | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('plugins_loaded', function() { | |
| $action = is_user_admin() ? 'user_admin_notices' : 'admin_notices'; | |
| add_action($action, function () { | |
| ob_start(); | |
| }); | |
| add_action('all_admin_notices', function () { | |
| $log = strip_tags(trim(ob_get_clean())); |