|
@@ 273-276 (lines=4) @@
|
| 270 |
|
*/ |
| 271 |
|
$enabled = apply_filters( 'xmlrpc_enabled', $enabled ); |
| 272 |
|
|
| 273 |
|
if ( ! $enabled ) { |
| 274 |
|
$this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site.' ) ) ); |
| 275 |
|
return false; |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
if ( $this->auth_failed ) { |
| 279 |
|
$user = new WP_Error( 'login_prevented' ); |
|
@@ 734-737 (lines=4) @@
|
| 731 |
|
* @return bool if `$args` contains at least $count arguments. |
| 732 |
|
*/ |
| 733 |
|
protected function minimum_args( $args, $count ) { |
| 734 |
|
if ( count( $args ) < $count ) { |
| 735 |
|
$this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) ); |
| 736 |
|
return false; |
| 737 |
|
} |
| 738 |
|
|
| 739 |
|
return true; |
| 740 |
|
} |