| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Conditionals; |
| 4 |
|
| 5 |
/** |
| 6 |
* Conditional that is met when the current request is an XML-RPC request. |
| 7 |
*/ |
| 8 |
class XMLRPC_Conditional implements Conditional { |
| 9 |
|
| 10 |
/** |
| 11 |
* Returns whether the current request is an XML-RPC request. |
| 12 |
* |
| 13 |
* @return bool `true` when the current request is an XML-RPC request, `false` if not. |
| 14 |
*/ |
| 15 |
public function is_met() { |
| 16 |
return ( \defined( 'XMLRPC_REQUEST' ) && \XMLRPC_REQUEST ); |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
|