@@ 250-259 (lines=10) @@ | ||
247 | } |
|
248 | } |
|
249 | ||
250 | function globalize_connection( $connection_id ) { |
|
251 | Jetpack::load_xml_rpc_client(); |
|
252 | $xml = new Jetpack_IXR_Client(); |
|
253 | $xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'globalize' ); |
|
254 | ||
255 | if ( ! $xml->isError() ) { |
|
256 | $response = $xml->getResponse(); |
|
257 | $this->receive_updated_publicize_connections( $response ); |
|
258 | } |
|
259 | } |
|
260 | ||
261 | function unglobalize_connection( $connection_id ) { |
|
262 | Jetpack::load_xml_rpc_client(); |
|
@@ 261-270 (lines=10) @@ | ||
258 | } |
|
259 | } |
|
260 | ||
261 | function unglobalize_connection( $connection_id ) { |
|
262 | Jetpack::load_xml_rpc_client(); |
|
263 | $xml = new Jetpack_IXR_Client(); |
|
264 | $xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'unglobalize' ); |
|
265 | ||
266 | if ( ! $xml->isError() ) { |
|
267 | $response = $xml->getResponse(); |
|
268 | $this->receive_updated_publicize_connections( $response ); |
|
269 | } |
|
270 | } |
|
271 | ||
272 | function connect_url( $service_name, $for = 'publicize' ) { |
|
273 | return Jetpack_Keyring_Service_Helper::connect_url( $service_name, $for ); |
|
@@ 656-666 (lines=11) @@ | ||
653 | ||
654 | } |
|
655 | ||
656 | function set_remote_publicize_options( $id, $options ) { |
|
657 | Jetpack::load_xml_rpc_client(); |
|
658 | $xml = new Jetpack_IXR_Client(); |
|
659 | $xml->query( 'jetpack.setPublicizeOptions', $id, $options ); |
|
660 | ||
661 | if ( ! $xml->isError() ) { |
|
662 | $response = $xml->getResponse(); |
|
663 | Jetpack_Options::update_option( 'publicize_connections', $response ); |
|
664 | $this->globalization(); |
|
665 | } |
|
666 | } |
|
667 | ||
668 | function options_page_twitter() { |
|
669 | Publicize_UI::options_page_other( 'twitter' ); |