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