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