Skip to content

Commit f8d4938

Browse files
committed
Fixed minor show_notice() bug
1 parent 7ca15d1 commit f8d4938

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

app/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function verify_dependencies( $deps = true, $args = array() ) {
131131
$notices = '<ul><li>' . implode( "</li>\n<li>", $notices ) . '</li></ul>';
132132

133133
if( $args['echo'] ) {
134-
Utils::show_notice($notices, self::$textdomain, 'error', false);
134+
Utils::show_notice($notices, 'error', false);
135135
return false;
136136
} else {
137137
return $notices;

app/Utils.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Utils extends Plugin {
1717
*/
1818
public static function show_notice( $msg, $type = 'error', $is_dismissible = false ) {
1919

20-
$msg = $this->translate( $msg );
2120
add_action( 'admin_notices', function() use (&$msg, &$type, &$is_dismissible) {
2221

2322
$class = 'notice notice-' . $type . ( $is_dismissible ? ' is-dismissible' : '' );

0 commit comments

Comments
 (0)