@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Plugin options getter |
| 144 | 144 | * |
| 145 | - * @param string|array $option Option name |
|
| 145 | + * @param string $option Option name |
|
| 146 | 146 | * @param mixed $default Default value |
| 147 | 147 | * |
| 148 | 148 | * @return mixed Option value |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param string $url |
| 171 | 171 | * |
| 172 | - * @return boolean |
|
| 172 | + * @return integer |
|
| 173 | 173 | */ |
| 174 | 174 | function soundcloud_url_has_tracklist( $url ) { |
| 175 | 175 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |
@@ -153,6 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * Get attachment images for a specified post and return them. Also make sure |
| 155 | 155 | * their dimensions are at or above a required minimum. |
| 156 | + * @param integer $post_id |
|
| 156 | 157 | */ |
| 157 | 158 | static function from_attachment( $post_id, $width = 200, $height = 200 ) { |
| 158 | 159 | $images = array(); |
@@ -545,7 +546,6 @@ discard block |
||
| 545 | 546 | * resized and cropped image. |
| 546 | 547 | * |
| 547 | 548 | * @param string $src |
| 548 | - * @param int $dimension |
|
| 549 | 549 | * @return string Transformed image URL |
| 550 | 550 | */ |
| 551 | 551 | static function fit_image_url( $src, $width, $height ) { |
@@ -129,6 +129,9 @@ |
||
| 129 | 129 | echo '<p>' . sprintf( _x( 'Learn more about the %s', 'the Internet Defense League', 'jetpack' ), '<a href="https://www.internetdefenseleague.org/">Internet Defense League</a>' ) . '</p>'; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | + /** |
|
| 133 | + * @param string $field_name |
|
| 134 | + */ |
|
| 132 | 135 | public function select( $field_name, $options, $default = null ) { |
| 133 | 136 | echo '<select class="widefat" name="' . $this->get_field_name( $field_name ) . '">'; |
| 134 | 137 | foreach ( $options as $option_slug => $option_name ) { |