@@ -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 ) { |
@@ -66,6 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * Similar to current_user_can, but internal to VideoPress. Returns |
68 | 68 | * true if the given VideoPress capability is allowed by the given user. |
69 | + * @param string $cap |
|
69 | 70 | */ |
70 | 71 | public function can( $cap, $user_id = false ) { |
71 | 72 | if ( ! $user_id ) { |
@@ -234,7 +235,7 @@ discard block |
||
234 | 235 | /** |
235 | 236 | * A work-around / hack to make it possible to go to the media library with the add new box open. |
236 | 237 | * |
237 | - * @return bool |
|
238 | + * @return false|null |
|
238 | 239 | */ |
239 | 240 | public function print_in_footer_open_media_add_new() { |
240 | 241 | global $pagenow; |
@@ -67,6 +67,7 @@ |
||
67 | 67 | * |
68 | 68 | * Similar to current_user_can, but internal to VideoPress. Returns |
69 | 69 | * true if the given VideoPress capability is allowed by the given user. |
70 | + * @param string $cap |
|
70 | 71 | */ |
71 | 72 | public function can( $cap, $user_id = false ) { |
72 | 73 | if ( ! $user_id ) { |