| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The 'do nothing' action. This really does nothing, and is used to short-circuit Redirection so that it doesn't trigger other redirects. |
| 5 |
*/ |
| 6 |
class Nothing_Action extends Red_Action { |
| 7 |
/** |
| 8 |
* Issue an action when nothing happens. This stops further processing. |
| 9 |
* |
| 10 |
* @return void |
| 11 |
*/ |
| 12 |
public function run() { |
| 13 |
do_action( 'redirection_do_nothing', $this->get_target() ); |
| 14 |
} |
| 15 |
|
| 16 |
public function name() { |
| 17 |
return __( 'Do nothing (ignore)', 'redirection' ); |
| 18 |
} |
| 19 |
} |
| 20 |
|