@@ 52-59 (lines=8) @@ | ||
49 | return $url; |
|
50 | } |
|
51 | ||
52 | static function connect_url( $service_name ) { |
|
53 | return add_query_arg( array( |
|
54 | 'action' => 'request', |
|
55 | 'service' => $service_name, |
|
56 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
57 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
58 | ), menu_page_url( 'sharing', false ) ); |
|
59 | } |
|
60 | ||
61 | static function refresh_url( $service_name ) { |
|
62 | return add_query_arg( array( |
|
@@ 72-80 (lines=9) @@ | ||
69 | ), admin_url( 'options-general.php?page=sharing' ) ); |
|
70 | } |
|
71 | ||
72 | static function disconnect_url( $service_name, $id ) { |
|
73 | return add_query_arg( array( |
|
74 | 'action' => 'delete', |
|
75 | 'service' => $service_name, |
|
76 | 'id' => $id, |
|
77 | 'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
|
78 | 'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
|
79 | ), menu_page_url( 'sharing', false ) ); |
|
80 | } |
|
81 | ||
82 | function admin_page_load() { |
|
83 | if ( isset( $_GET['action'] ) ) { |