@@ -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'] ); |
@@ -261,6 +261,9 @@ |
||
261 | 261 | </div><?php |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param string $service_name |
|
266 | + */ |
|
264 | 267 | public static function options_page_other( $service_name ) { |
265 | 268 | // Nonce check |
266 | 269 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |