ConfirmationFactory.php
11 years ago
ConfirmationInterface.php
11 years ago
LinkDeletedConfirmation.php
11 years ago
TrashConfirmation.php
11 years ago
TrashRestoredConfirmation.php
11 years ago
TrashRestoredConfirmation.php
15 lines
| 1 | <?php namespace NestedPages\Entities\Confirmation; |
| 2 | /** |
| 3 | * Confirm page(s) restored from trash |
| 4 | */ |
| 5 | class TrashRestoredConfirmation implements ConfirmationInterface { |
| 6 | |
| 7 | public function setMessage() |
| 8 | { |
| 9 | $untrashed = sanitize_text_field($_GET['untrashed']); |
| 10 | $page = ( intval($untrashed) > 1 ) ? __('pages', 'nestedpages') : __('page', 'nestedpages'); |
| 11 | $out = $untrashed . ' ' . $page . ' ' . __('restored from trash', 'nestedpages'); |
| 12 | return $out; |
| 13 | } |
| 14 | |
| 15 | } |