@@ 355-362 (lines=8) @@ | ||
352 | return $url; |
|
353 | } |
|
354 | ||
355 | function connect_url( $service_name ) { |
|
356 | return add_query_arg( array( |
|
357 | 'action' => 'request', |
|
358 | 'service' => $service_name, |
|
359 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
360 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
361 | ), menu_page_url( 'sharing', false ) ); |
|
362 | } |
|
363 | ||
364 | function refresh_url( $service_name ) { |
|
365 | return add_query_arg( array( |
|
@@ 375-383 (lines=9) @@ | ||
372 | ), admin_url( 'options-general.php?page=sharing' ) ); |
|
373 | } |
|
374 | ||
375 | function disconnect_url( $service_name, $id ) { |
|
376 | return add_query_arg( array( |
|
377 | 'action' => 'delete', |
|
378 | 'service' => $service_name, |
|
379 | 'id' => $id, |
|
380 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
381 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
382 | ), menu_page_url( 'sharing', false ) ); |
|
383 | } |
|
384 | ||
385 | /** |
|
386 | * Get social networks, either all available or only those that the site is connected to. |