| @@ -18,11 +18,16 @@ | ||
| 18 | 18 | if ($this->post->get('_wpnonce')) { |
| 19 | 19 | if (wp_verify_nonce($this->post->get('_wpnonce'), 'e2pdf_debug')) { |
| 20 | 20 | if ($this->post->get('e2pdf_updated')) { |
| 21 | 21 | update_option('e2pdf_version', '1.00.00'); |
| 22 | - /* translators: %s: Action */ | |
| 23 | - $this->add_notification('update', sprintf(__('Success: %s', 'e2pdf'), __('Reinitialize Activation Hooks', 'e2pdf'))); | |
| 24 | - $this->redirect($this->helper->get_url(['page' => 'e2pdf-debug'])); | |
| 22 | + $this->redirect( | |
| 23 | + $this->helper->get_url( | |
| 24 | + [ | |
| 25 | + 'page' => 'e2pdf-debug', | |
| 26 | + 'notification' => $this->add_notification('update', __('Success', 'e2pdf')), | |
| 27 | + ] | |
| 28 | + ) | |
| 29 | + ); | |
| 25 | 30 | } |
| 26 | 31 | } else { |
| 27 | 32 | wp_die($this->message('wp_verify_nonce_error')); |
| 28 | 33 | } |
| @@ -43,20 +48,14 @@ | ||
| 43 | 48 | if (wp_verify_nonce($this->post->get('_wpnonce'), 'e2pdf_debug')) { |
| 44 | 49 | if ($this->post->get('e2pdf_db_repair')) { |
| 45 | 50 | $db_prefix = $wpdb->prefix; |
| 46 | 51 | $this->helper->load('db')->db_repair($db_prefix); |
| 47 | - /* translators: %s: Action */ | |
| 48 | - $this->add_notification('update', sprintf(__('Success: %s', 'e2pdf'), __('Repair DB', 'e2pdf'))); | |
| 49 | 52 | } elseif ($this->post->get('e2pdf_db_repair_collate')) { |
| 50 | 53 | $db_prefix = $wpdb->prefix; |
| 51 | 54 | $this->helper->load('db')->db_repair_collate($db_prefix); |
| 52 | - /* translators: %s: Action */ | |
| 53 | - $this->add_notification('update', sprintf(__('Success: %s', 'e2pdf'), __('Repair DB Collate', 'e2pdf'))); | |
| 54 | 55 | } elseif ($this->post->get('e2pdf_db')) { |
| 55 | 56 | $db_prefix = $wpdb->prefix; |
| 56 | 57 | $this->helper->load('db')->db_init($db_prefix); |
| 57 | - /* translators: %s: Action */ | |
| 58 | - $this->add_notification('update', sprintf(__('Success: %s', 'e2pdf'), __('Reinitialize DB Hooks', 'e2pdf'))); | |
| 59 | 58 | } |
| 60 | 59 | $this->redirect( |
| 61 | 60 | $this->helper->get_url( |
| 62 | 61 | [ |
| @@ -61,8 +60,9 @@ | ||
| 61 | 60 | $this->helper->get_url( |
| 62 | 61 | [ |
| 63 | 62 | 'page' => 'e2pdf-debug', |
| 64 | 63 | 'action' => 'db', |
| 64 | + 'notification' => $this->add_notification('update', __('Success', 'e2pdf')), | |
| 65 | 65 | ] |
| 66 | 66 | ) |
| 67 | 67 | ); |
| 68 | 68 | } else { |