|
@@ 872-874 (lines=3) @@
|
| 869 |
|
); |
| 870 |
|
|
| 871 |
|
// optional additional params |
| 872 |
|
if ( isset( $named_args['wpcom_user_id'] ) && ! empty( $named_args['wpcom_user_id'] ) ) { |
| 873 |
|
$request_body['wpcom_user_id'] = $named_args['wpcom_user_id']; |
| 874 |
|
} |
| 875 |
|
|
| 876 |
|
if ( isset( $named_args['plan'] ) && ! empty( $named_args['plan'] ) ) { |
| 877 |
|
$request_body['plan'] = $named_args['plan']; |
|
@@ 876-878 (lines=3) @@
|
| 873 |
|
$request_body['wpcom_user_id'] = $named_args['wpcom_user_id']; |
| 874 |
|
} |
| 875 |
|
|
| 876 |
|
if ( isset( $named_args['plan'] ) && ! empty( $named_args['plan'] ) ) { |
| 877 |
|
$request_body['plan'] = $named_args['plan']; |
| 878 |
|
} |
| 879 |
|
|
| 880 |
|
$request = array( |
| 881 |
|
'headers' => array( |