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