@@ 322-329 (lines=8) @@ | ||
319 | return $url; |
|
320 | } |
|
321 | ||
322 | function connect_url( $service_name ) { |
|
323 | return add_query_arg( array( |
|
324 | 'action' => 'request', |
|
325 | 'service' => $service_name, |
|
326 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
327 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
328 | ), menu_page_url( 'sharing', false ) ); |
|
329 | } |
|
330 | ||
331 | function refresh_url( $service_name ) { |
|
332 | return add_query_arg( array( |
|
@@ 342-350 (lines=9) @@ | ||
339 | ), admin_url( 'options-general.php?page=sharing' ) ); |
|
340 | } |
|
341 | ||
342 | function disconnect_url( $service_name, $id ) { |
|
343 | return add_query_arg( array( |
|
344 | 'action' => 'delete', |
|
345 | 'service' => $service_name, |
|
346 | 'id' => $id, |
|
347 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
348 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
349 | ), menu_page_url( 'sharing', false ) ); |
|
350 | } |
|
351 | ||
352 | function get_services( $filter ) { |
|
353 | if ( ! in_array( $filter, array( 'all', 'connected' ) ) ) { |