| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Frontend |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Class WPSEO_Handle_404 |
| 10 |
* |
| 11 |
* Handles intercepting requests. |
| 12 |
* |
| 13 |
* @deprecated 14.0 |
| 14 |
* |
| 15 |
* @since 9.4 |
| 16 |
*/ |
| 17 |
class WPSEO_Handle_404 implements WPSEO_WordPress_Integration { |
| 18 |
|
| 19 |
/** |
| 20 |
* Registers all hooks to WordPress. |
| 21 |
* |
| 22 |
* @codeCoverageIgnore |
| 23 |
* @deprecated 14.0 |
| 24 |
* |
| 25 |
* @return void |
| 26 |
*/ |
| 27 |
public function register_hooks() { |
| 28 |
_deprecated_function( __METHOD__, 'WPSEO 14.0' ); |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* Handle the 404 status code. |
| 33 |
* |
| 34 |
* @codeCoverageIgnore |
| 35 |
* @deprecated 14.0 |
| 36 |
* |
| 37 |
* @param bool $handled Whether we've handled the request. |
| 38 |
* |
| 39 |
* @return bool True if it's 404. |
| 40 |
*/ |
| 41 |
public function handle_404( $handled ) { |
| 42 |
_deprecated_function( __METHOD__, 'WPSEO 14.0' ); |
| 43 |
|
| 44 |
return $handled; |
| 45 |
} |
| 46 |
} |
| 47 |
|