|
@@ 330-337 (lines=8) @@
|
| 327 |
|
return $url; |
| 328 |
|
} |
| 329 |
|
|
| 330 |
|
function connect_url( $service_name ) { |
| 331 |
|
return add_query_arg( array( |
| 332 |
|
'action' => 'request', |
| 333 |
|
'service' => $service_name, |
| 334 |
|
'kr_nonce' => wp_create_nonce( 'keyring-request' ), |
| 335 |
|
'nonce' => wp_create_nonce( "keyring-request-$service_name" ), |
| 336 |
|
), menu_page_url( 'sharing', false ) ); |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
function refresh_url( $service_name ) { |
| 340 |
|
return add_query_arg( array( |
|
@@ 350-358 (lines=9) @@
|
| 347 |
|
), admin_url( 'options-general.php?page=sharing' ) ); |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
function disconnect_url( $service_name, $id ) { |
| 351 |
|
return add_query_arg( array( |
| 352 |
|
'action' => 'delete', |
| 353 |
|
'service' => $service_name, |
| 354 |
|
'id' => $id, |
| 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 |
|
/** |
| 361 |
|
* Get social networks, either all available or only those that the site is connected to. |