@@ -1283,7 +1283,7 @@ |
||
| 1283 | 1283 | * Returns an array of stock and custom taxonomy query vars |
| 1284 | 1284 | * |
| 1285 | 1285 | * @global $wp_taxonomies |
| 1286 | - * @return array |
|
| 1286 | + * @return string[] |
|
| 1287 | 1287 | */ |
| 1288 | 1288 | function get_taxonomy_vars() { |
| 1289 | 1289 | global $wp_taxonomies; |
@@ -58,6 +58,9 @@ |
||
| 58 | 58 | return latex_render( $latex, $fg, $bg, $s ); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | +/** |
|
| 62 | + * @param string $color |
|
| 63 | + */ |
|
| 61 | 64 | function latex_get_default_color( $color, $default_color = 'ffffff' ) { |
| 62 | 65 | global $themecolors; |
| 63 | 66 | return isset($themecolors[$color]) ? $themecolors[$color] : $default_color; |
@@ -332,6 +332,9 @@ |
||
| 332 | 332 | <?php |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | + /** |
|
| 336 | + * @param string $option |
|
| 337 | + */ |
|
| 335 | 338 | function admin_likes_get_option( $option ) { |
| 336 | 339 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 337 | 340 | $option_setting = get_blog_option( get_current_blog_id(), $option, 'on' ); |
@@ -504,6 +504,9 @@ |
||
| 504 | 504 | ) ); |
| 505 | 505 | } |
| 506 | 506 | |
| 507 | + /** |
|
| 508 | + * @param string $content |
|
| 509 | + */ |
|
| 507 | 510 | protected function comment_hash( $content ) { |
| 508 | 511 | return 'c-' . substr( md5( $content ), 0, 8 ); |
| 509 | 512 | } |
@@ -406,7 +406,7 @@ |
||
| 406 | 406 | * Send a synchronous XML-RPC subscribe to blog posts or subscribe to post comments request. |
| 407 | 407 | * |
| 408 | 408 | * @param string $email |
| 409 | - * @param array $post_ids (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
|
| 409 | + * @param integer $post_ids (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
|
| 410 | 410 | * @param bool $async (optional) Should the subscription be performed asynchronously? Defaults to true. |
| 411 | 411 | * |
| 412 | 412 | * @return true|Jetpack_Error true on success |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | /** |
| 259 | 259 | * Reset the site logo if the current logo is deleted in the media manager. |
| 260 | 260 | * |
| 261 | - * @param int $site_id |
|
| 261 | + * @param int $post_id |
|
| 262 | 262 | * @uses Site_Logo::remove_site_logo() |
| 263 | 263 | */ |
| 264 | 264 | public function reset_on_attachment_delete( $post_id ) { |
@@ -185,6 +185,7 @@ |
||
| 185 | 185 | * @since 1.3 |
| 186 | 186 | * @uses current_user_can() to test if current user has edit_posts capability |
| 187 | 187 | * @var WP_Error $error WordPress error |
| 188 | + * @param VideoPress_Video $error |
|
| 188 | 189 | * @return string HTML string |
| 189 | 190 | */ |
| 190 | 191 | private function error_message( $error ) { |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | * |
| 272 | 272 | * @since 1.2 |
| 273 | 273 | * @param string $url absolute URL |
| 274 | - * @return bool|string host component of the URL, or false if none found |
|
| 274 | + * @return string|false host component of the URL, or false if none found |
|
| 275 | 275 | */ |
| 276 | 276 | public static function hostname( $url ) { |
| 277 | 277 | return parse_url( esc_url_raw( $url ), PHP_URL_HOST ); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * NOTE: If you want IMAGES, call extract( $blog_id, $post_id, ...) which will give you more/better image extraction |
| 75 | 75 | * This method will give you an error if you ask for IMAGES. |
| 76 | 76 | * |
| 77 | - * @param $content The HTML post_content of a post |
|
| 77 | + * @param string $content The HTML post_content of a post |
|
| 78 | 78 | * @param $what_to_extract (int) A mask of things to extract, e.g. Jetpack_Media_Meta_Extractor::IMAGES | Jetpack_Media_Meta_Extractor::MENTIONS |
| 79 | 79 | * @param $already_extracted (array) Previously extracted things, e.g. images from extract(), which can be used for x-referencing here |
| 80 | 80 | * @returns a structure containing metadata about the embedded things, or empty array if nothing found, or WP_Error on error |