@@ 327-334 (lines=8) @@ | ||
324 | return $url; |
|
325 | } |
|
326 | ||
327 | function connect_url( $service_name ) { |
|
328 | return add_query_arg( array( |
|
329 | 'action' => 'request', |
|
330 | 'service' => $service_name, |
|
331 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
332 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
333 | ), menu_page_url( 'sharing', false ) ); |
|
334 | } |
|
335 | ||
336 | function refresh_url( $service_name ) { |
|
337 | return add_query_arg( array( |
|
@@ 347-355 (lines=9) @@ | ||
344 | ), admin_url( 'options-general.php?page=sharing' ) ); |
|
345 | } |
|
346 | ||
347 | function disconnect_url( $service_name, $id ) { |
|
348 | return add_query_arg( array( |
|
349 | 'action' => 'delete', |
|
350 | 'service' => $service_name, |
|
351 | 'id' => $id, |
|
352 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
353 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
354 | ), menu_page_url( 'sharing', false ) ); |
|
355 | } |
|
356 | ||
357 | function get_services( $filter ) { |
|
358 | if ( ! in_array( $filter, array( 'all', 'connected' ) ) ) { |