|
@@ 251-260 (lines=10) @@
|
| 248 |
|
} |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
function globalize_connection( $connection_id ) { |
| 252 |
|
Jetpack::load_xml_rpc_client(); |
| 253 |
|
$xml = new Jetpack_IXR_Client(); |
| 254 |
|
$xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'globalize' ); |
| 255 |
|
|
| 256 |
|
if ( ! $xml->isError() ) { |
| 257 |
|
$response = $xml->getResponse(); |
| 258 |
|
$this->receive_updated_publicize_connections( $response ); |
| 259 |
|
} |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
function unglobalize_connection( $connection_id ) { |
| 263 |
|
Jetpack::load_xml_rpc_client(); |
|
@@ 262-271 (lines=10) @@
|
| 259 |
|
} |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
function unglobalize_connection( $connection_id ) { |
| 263 |
|
Jetpack::load_xml_rpc_client(); |
| 264 |
|
$xml = new Jetpack_IXR_Client(); |
| 265 |
|
$xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'unglobalize' ); |
| 266 |
|
|
| 267 |
|
if ( ! $xml->isError() ) { |
| 268 |
|
$response = $xml->getResponse(); |
| 269 |
|
$this->receive_updated_publicize_connections( $response ); |
| 270 |
|
} |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
function connect_url( $service_name, $for = 'publicize' ) { |
| 274 |
|
return Jetpack_Keyring_Service_Helper::connect_url( $service_name, $for ); |
|
@@ 634-644 (lines=11) @@
|
| 631 |
|
|
| 632 |
|
} |
| 633 |
|
|
| 634 |
|
function set_remote_publicize_options( $id, $options ) { |
| 635 |
|
Jetpack::load_xml_rpc_client(); |
| 636 |
|
$xml = new Jetpack_IXR_Client(); |
| 637 |
|
$xml->query( 'jetpack.setPublicizeOptions', $id, $options ); |
| 638 |
|
|
| 639 |
|
if ( ! $xml->isError() ) { |
| 640 |
|
$response = $xml->getResponse(); |
| 641 |
|
Jetpack_Options::update_option( 'publicize_connections', $response ); |
| 642 |
|
$this->globalization(); |
| 643 |
|
} |
| 644 |
|
} |
| 645 |
|
|
| 646 |
|
function options_page_twitter() { |
| 647 |
|
Publicize_UI::options_page_other( 'twitter' ); |