@@ -100,6 +100,10 @@ discard block |
||
100 | 100 | ), menu_page_url( 'sharing', false ) ); |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $service_name |
|
105 | + * @param string $for |
|
106 | + */ |
|
103 | 107 | static function refresh_url( $service_name, $for ) { |
104 | 108 | return add_query_arg( array( |
105 | 109 | 'action' => 'request', |
@@ -111,6 +115,10 @@ discard block |
||
111 | 115 | ), admin_url( 'options-general.php?page=sharing' ) ); |
112 | 116 | } |
113 | 117 | |
118 | + /** |
|
119 | + * @param string $service_name |
|
120 | + * @param string $id |
|
121 | + */ |
|
114 | 122 | static function disconnect_url( $service_name, $id ) { |
115 | 123 | return add_query_arg( array( |
116 | 124 | 'action' => 'delete', |
@@ -324,6 +324,9 @@ discard block |
||
324 | 324 | </div><?php |
325 | 325 | } |
326 | 326 | |
327 | + /** |
|
328 | + * @param string $service_name |
|
329 | + */ |
|
327 | 330 | public static function options_page_other( $service_name ) { |
328 | 331 | // Nonce check |
329 | 332 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |
@@ -704,7 +707,7 @@ discard block |
||
704 | 707 | * |
705 | 708 | * @param array $connections_data |
706 | 709 | * |
707 | - * @return array { |
|
710 | + * @return string { |
|
708 | 711 | * Array of content for generating connection form. |
709 | 712 | * |
710 | 713 | * @type string HTML content of form |
@@ -56,7 +56,6 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @since 5.9.1 |
58 | 58 | * |
59 | - * @param WP_REST_Request $request Request instance from REST call. |
|
60 | 59 | * |
61 | 60 | * @return string JSON encoded connection list data. |
62 | 61 | */ |
@@ -242,7 +241,7 @@ discard block |
||
242 | 241 | * @param stdClass $new_post_obj Updated post object about to be inserted view REST endpoint. |
243 | 242 | * @param WP_REST_Request $request Request object, possibly containing 'publicize' field {@see add_publicize_rest_fields()}. |
244 | 243 | * |
245 | - * @return WP_Post Returns the original $new_post value unchanged. |
|
244 | + * @return stdClass Returns the original $new_post value unchanged. |
|
246 | 245 | */ |
247 | 246 | public function process_publicize_from_rest( $new_post_obj, $request ) { |
248 | 247 | global $publicize; |