| @@ -7,16 +7,11 @@ | ||
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // Need only on admin area |
| 10 | 10 | if ( ! is_admin() ) { |
| 11 | - return; | |
| 11 | + return NULL; | |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -// If is AJAX Call. | |
| 15 | -if ( defined('DOING_AJAX') && DOING_AJAX ) { | |
| 16 | - return; | |
| 17 | -} | |
| 18 | - | |
| 19 | 14 | class _mw_adminimize_message_class { |
| 20 | 15 | |
| 21 | 16 | /** |
| 22 | 17 | * constructor |
| @@ -59,12 +54,12 @@ | ||
| 59 | 54 | $this->errors->add( |
| 60 | 55 | '_mw_adminimize_import', esc_attr__( 'All entries in the database were imported.', 'adminimize' ) |
| 61 | 56 | ); |
| 62 | 57 | $this->errors->add( |
| 63 | - '_mw_adminimize_uninstall', esc_attr__( 'All entries in the database were deleted.', 'adminimize' ) | |
| 58 | + '_mw_adminimize_deinstall', esc_attr__( 'All entries in the database were deleted.', 'adminimize' ) | |
| 64 | 59 | ); |
| 65 | 60 | $this->errors->add( |
| 66 | - '_mw_adminimize_uninstall_yes', esc_attr__( 'Set the checkbox on deinstall-button.', 'adminimize' ) | |
| 61 | + '_mw_adminimize_deinstall_yes', esc_attr__( 'Set the checkbox on deinstall-button.', 'adminimize' ) | |
| 67 | 62 | ); |
| 68 | 63 | $this->errors->add( |
| 69 | 64 | '_mw_adminimize_get_option', esc_attr__( 'Can\'t load menu and submenu.', 'adminimize' ) |
| 70 | 65 | ); |