@@ -250,6 +250,9 @@ |
||
250 | 250 | } |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param string $capability |
|
255 | + */ |
|
253 | 256 | protected function current_user_can( $capability, $plugin = null ) { |
254 | 257 | // If this endpoint accepts site based authentication and a blog token is used, skip capabilities check. |
255 | 258 | if ( $this->accepts_site_based_authentication() ) { |
@@ -253,7 +253,7 @@ |
||
253 | 253 | * |
254 | 254 | * The list includes an empty string, which is used when no icon should be displayed. |
255 | 255 | * |
256 | - * @return array The list of supported icons. |
|
256 | + * @return string[] The list of supported icons. |
|
257 | 257 | */ |
258 | 258 | public function get_supported_icons() { |
259 | 259 | return array( |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Return a hosting provider using a set of known constants. |
188 | 188 | * |
189 | - * @return mixed A host identifier string or false. |
|
189 | + * @return string|false A host identifier string or false. |
|
190 | 190 | */ |
191 | 191 | public function get_hosting_provider_by_known_constant() { |
192 | 192 | $hosting_provider_constants = array( |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Return a hosting provider using a set of known classes. |
216 | 216 | * |
217 | - * @return mixed A host identifier string or false. |
|
217 | + * @return string|false A host identifier string or false. |
|
218 | 218 | */ |
219 | 219 | public function get_hosting_provider_by_known_class() { |
220 | 220 | $hosting_provider = false; |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Return a hosting provider using a set of known functions. |
233 | 233 | * |
234 | - * @return mixed A host identifier string or false. |
|
234 | + * @return string|false A host identifier string or false. |
|
235 | 235 | */ |
236 | 236 | public function get_hosting_provider_by_known_function() { |
237 | 237 | $hosting_provider = false; |
@@ -380,7 +380,7 @@ |
||
380 | 380 | * |
381 | 381 | * @param string $option Option value from the site. |
382 | 382 | * @param callable $url_function Function retrieving the URL to normalize. |
383 | - * @return mixed|string URL. |
|
383 | + * @return callable URL. |
|
384 | 384 | */ |
385 | 385 | public static function normalize_www_in_url( $option, $url_function ) { |
386 | 386 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -766,7 +766,7 @@ |
||
766 | 766 | * |
767 | 767 | * @param string $item Sync item identifier. |
768 | 768 | * |
769 | - * @return string|string[]|null |
|
769 | + * @return null|string |
|
770 | 770 | */ |
771 | 771 | protected static function sanitize_item_ids( $item ) { |
772 | 772 | // lets not delete any options that don't start with jpsq_sync- . |
@@ -10,6 +10,9 @@ |
||
10 | 10 | function __construct() { |
11 | 11 | } |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $table |
|
15 | + */ |
|
13 | 16 | function attach( $table, $parse_create_table = false ) { |
14 | 17 | $this->table=$table; |
15 | 18 | if ( $parse_create_table ) { |
@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | die( 'naughty naughty' ); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $file |
|
47 | + */ |
|
45 | 48 | function fdump( $file ) { |
46 | 49 | header("Content-Type: application/octet-stream;"); |
47 | 50 | header("Content-Transfer-Encoding: binary"); |
@@ -88,6 +91,9 @@ discard block |
||
88 | 91 | return false; |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @param string $method |
|
96 | + */ |
|
91 | 97 | function checksum_file( $file, $method ) { |
92 | 98 | $use_exec = false; |
93 | 99 | if ( filesize( $file ) >= 104857600 ) |
@@ -394,6 +394,9 @@ discard block |
||
394 | 394 | return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>" . $suffix; |
395 | 395 | } |
396 | 396 | |
397 | + /** |
|
398 | + * @param integer $goal |
|
399 | + */ |
|
397 | 400 | function r20493_split_str_by_whitespace( $string, $goal ) { |
398 | 401 | $chunks = array(); |
399 | 402 | |
@@ -904,6 +907,10 @@ discard block |
||
904 | 907 | return VaultPress_kses::wp_kses_attr( $elem, $attrlist, $allowed_html, $allowed_protocols ); |
905 | 908 | } |
906 | 909 | |
910 | + /** |
|
911 | + * @param string $element |
|
912 | + * @param string $attr |
|
913 | + */ |
|
907 | 914 | static function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) { |
908 | 915 | # Is there a closing XHTML slash at the end of the attributes? |
909 | 916 |
@@ -50,6 +50,7 @@ |
||
50 | 50 | * Perform the IXR request. |
51 | 51 | * |
52 | 52 | * @param string[] ...$args IXR args. |
53 | + * @param string $args |
|
53 | 54 | * |
54 | 55 | * @return bool True if request succeeded, false otherwise. |
55 | 56 | */ |