@@ -328,6 +328,9 @@ discard block |
||
| 328 | 328 | ), menu_page_url( 'sharing', false ) ); |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | + /** |
|
| 332 | + * @param string $filter |
|
| 333 | + */ |
|
| 331 | 334 | function get_services( $filter ) { |
| 332 | 335 | if ( !in_array( $filter, array( 'all', 'connected' ) ) ) |
| 333 | 336 | $filter = 'all'; |
@@ -663,6 +666,9 @@ discard block |
||
| 663 | 666 | function options_save_path() { $this->options_save_other( 'path' ); } |
| 664 | 667 | function options_save_google_plus() { $this->options_save_other( 'google_plus' ); } |
| 665 | 668 | |
| 669 | + /** |
|
| 670 | + * @param string $service_name |
|
| 671 | + */ |
|
| 666 | 672 | function options_save_other( $service_name ) { |
| 667 | 673 | // Nonce check |
| 668 | 674 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |