@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Register myself so that all associated JS and CSS files can be found and automatically included |
33 | 33 | * @param $extensions |
34 | 34 | * |
35 | - * @return array |
|
35 | + * @return string[] |
|
36 | 36 | */ |
37 | 37 | function register_myself( $extensions ) { |
38 | 38 | $extensions[] = __FILE__; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * Build up the arguments needed for rendering this gallery template |
208 | 208 | * |
209 | 209 | * @param $args |
210 | - * @return array |
|
210 | + * @return boolean |
|
211 | 211 | */ |
212 | 212 | function build_gallery_template_arguments( $args ) { |
213 | 213 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * Register myself so that all associated JS and CSS files can be found and automatically included |
52 | 52 | * @param $extensions |
53 | 53 | * |
54 | - * @return array |
|
54 | + * @return string[] |
|
55 | 55 | */ |
56 | 56 | function register_myself( $extensions ) { |
57 | 57 | $extensions[] = __FILE__; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * Build up the arguments needed for rendering this gallery template |
284 | 284 | * |
285 | 285 | * @param $args |
286 | - * @return array |
|
286 | + * @return boolean |
|
287 | 287 | */ |
288 | 288 | function build_gallery_template_arguments( $args ) { |
289 | 289 | $args = foogallery_gallery_template_setting( 'thumbnail_size', 'thumbnail' ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * Register myself so that all associated JS and CSS files can be found and automatically included |
41 | 41 | * @param $extensions |
42 | 42 | * |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | function register_myself( $extensions ) { |
46 | 46 | $extensions[] = __FILE__; |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * Build up the arguments needed for rendering this gallery template |
294 | 294 | * |
295 | 295 | * @param $args |
296 | - * @return array |
|
296 | + * @return boolean |
|
297 | 297 | */ |
298 | 298 | function build_gallery_template_arguments( $args ) { |
299 | 299 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Register myself so that all associated JS and CSS files can be found and automatically included |
66 | 66 | * @param $extensions |
67 | 67 | * |
68 | - * @return array |
|
68 | + * @return string[] |
|
69 | 69 | */ |
70 | 70 | function register_myself( $extensions ) { |
71 | 71 | $extensions[] = __FILE__; |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * Build up the arguments needed for rendering this gallery template |
377 | 377 | * |
378 | 378 | * @param $args |
379 | - * @return array |
|
379 | + * @return boolean |
|
380 | 380 | */ |
381 | 381 | function build_gallery_template_arguments( $args ) { |
382 | 382 | $args = foogallery_gallery_template_setting( 'thumbnail_size', array() ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * Register myself so that all associated JS and CSS files can be found and automatically included |
41 | 41 | * @param $extensions |
42 | 42 | * |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | function register_myself( $extensions ) { |
46 | 46 | $extensions[] = __FILE__; |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * Build up the arguments needed for rendering this gallery template |
294 | 294 | * |
295 | 295 | * @param $args |
296 | - * @return array |
|
296 | + * @return boolean |
|
297 | 297 | */ |
298 | 298 | function build_gallery_template_arguments( $args ) { |
299 | 299 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -200,6 +200,10 @@ discard block |
||
200 | 200 | die(); |
201 | 201 | } |
202 | 202 | |
203 | + /** |
|
204 | + * @param string $shortcode |
|
205 | + * @param string $id_attrib |
|
206 | + */ |
|
203 | 207 | function echo_findings_for_shortcode( $shortcode, $id_attrib ) { |
204 | 208 | echo '<h3>[' . $shortcode . '] Shortcodes</h3>'; |
205 | 209 | |
@@ -232,6 +236,10 @@ discard block |
||
232 | 236 | } |
233 | 237 | } |
234 | 238 | |
239 | + /** |
|
240 | + * @param string $shortcode |
|
241 | + * @param string $id_attrib |
|
242 | + */ |
|
235 | 243 | function echo_replacements_for_shortcode( $shortcode, $id_attrib ) { |
236 | 244 | echo '<h3>[' . $shortcode . '] Shortcodes</h3>'; |
237 | 245 |
@@ -342,10 +342,11 @@ |
||
342 | 342 | /** |
343 | 343 | * Build up a taxonomy field HTML |
344 | 344 | * |
345 | - * @param $taxonomy |
|
345 | + * @param string $taxonomy |
|
346 | 346 | * @param $post |
347 | + * @param string $value |
|
347 | 348 | * |
348 | - * @return array |
|
349 | + * @return string |
|
349 | 350 | */ |
350 | 351 | function build_taxonomy_html( $taxonomy, $post, $value ) { |
351 | 352 | $html = '<input type="text" data-attachment_id="' . $post->ID . '" class="foogallery-attachment-ignore-change" id="attachments-' . $post->ID .'-' . $taxonomy . '" name="attachments-' . $post->ID .'-' . $taxonomy . '" value="' . $value . '" data-original-value="' . $value . '" />'; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @param $metabox_ids |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string[] |
|
48 | 48 | */ |
49 | 49 | function add_pll_metaboxes ($metabox_ids) { |
50 | 50 | $metabox_ids[] = 'ml_box'; |
@@ -122,8 +122,8 @@ |
||
122 | 122 | * |
123 | 123 | * @param {int} $orig_width - The original width of the image. |
124 | 124 | * @param {int} $orig_height - The original height of the image. |
125 | - * @param {int} $new_width - The new width for the image or 0 to calculate it from the supplied new height and original dimensions. |
|
126 | - * @param {int} $new_height - The new height for the image or 0 to calculate it from the supplied new width and original dimensions. |
|
125 | + * @param integer $new_width - The new width for the image or 0 to calculate it from the supplied new height and original dimensions. |
|
126 | + * @param integer $new_height - The new height for the image or 0 to calculate it from the supplied new width and original dimensions. |
|
127 | 127 | * |
128 | 128 | * @return array|false - Returns an array with the width value at index 0 and the height value at index 1. |
129 | 129 | * Returns false if the original dimensions are invalid or if both the new width and height are invalid. |