@@ -300,6 +300,9 @@ discard block |
||
300 | 300 | return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) ); |
301 | 301 | } |
302 | 302 | |
303 | + /** |
|
304 | + * @param string $type |
|
305 | + */ |
|
303 | 306 | public static function block_attributes_to_shortcode_attributes( $atts, $type ) { |
304 | 307 | $atts['type'] = $type; |
305 | 308 | if ( isset( $atts['className'] ) ) { |
@@ -1918,7 +1921,6 @@ discard block |
||
1918 | 1921 | * |
1919 | 1922 | * @see ::style() |
1920 | 1923 | * @internal |
1921 | - * @param bool $style |
|
1922 | 1924 | */ |
1923 | 1925 | static function _style_on() { |
1924 | 1926 | return self::style( true ); |
@@ -2086,6 +2088,7 @@ discard block |
||
2086 | 2088 | * |
2087 | 2089 | * @param int $feedback_id |
2088 | 2090 | * @param object Grunion_Contact_Form $form |
2091 | + * @param Grunion_Contact_Form $form |
|
2089 | 2092 | * |
2090 | 2093 | * @return string $message |
2091 | 2094 | */ |
@@ -2210,7 +2213,7 @@ discard block |
||
2210 | 2213 | * |
2211 | 2214 | * @param array $attributes Key => Value pairs as parsed by shortcode_parse_atts() |
2212 | 2215 | * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field] |
2213 | - * @return HTML for the contact form field |
|
2216 | + * @return string for the contact form field |
|
2214 | 2217 | */ |
2215 | 2218 | static function parse_contact_field( $attributes, $content ) { |
2216 | 2219 | // Don't try to parse contact form fields if not inside a contact form |
@@ -3233,6 +3236,9 @@ discard block |
||
3233 | 3236 | |
3234 | 3237 | } |
3235 | 3238 | |
3239 | + /** |
|
3240 | + * @param string $type |
|
3241 | + */ |
|
3236 | 3242 | function render_input_field( $type, $id, $value, $class, $placeholder, $required ) { |
3237 | 3243 | return "<input |
3238 | 3244 | type='". esc_attr( $type ) ."' |
@@ -3244,24 +3250,40 @@ discard block |
||
3244 | 3250 | />\n"; |
3245 | 3251 | } |
3246 | 3252 | |
3253 | + /** |
|
3254 | + * @param string $class |
|
3255 | + * @param string $placeholder |
|
3256 | + */ |
|
3247 | 3257 | function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3248 | 3258 | $field = $this->render_label( 'email', $id, $label, $required, $required_field_text ); |
3249 | 3259 | $field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required ); |
3250 | 3260 | return $field; |
3251 | 3261 | } |
3252 | 3262 | |
3263 | + /** |
|
3264 | + * @param string $class |
|
3265 | + * @param string $placeholder |
|
3266 | + */ |
|
3253 | 3267 | function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3254 | 3268 | $field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text ); |
3255 | 3269 | $field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required ); |
3256 | 3270 | return $field; |
3257 | 3271 | } |
3258 | 3272 | |
3273 | + /** |
|
3274 | + * @param string $class |
|
3275 | + * @param string $placeholder |
|
3276 | + */ |
|
3259 | 3277 | function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3260 | 3278 | $field = $this->render_label( 'url', $id, $label, $required, $required_field_text ); |
3261 | 3279 | $field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required ); |
3262 | 3280 | return $field; |
3263 | 3281 | } |
3264 | 3282 | |
3283 | + /** |
|
3284 | + * @param string $class |
|
3285 | + * @param string $placeholder |
|
3286 | + */ |
|
3265 | 3287 | function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3266 | 3288 | $field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text ); |
3267 | 3289 | $field .= "<textarea |
@@ -3276,6 +3298,9 @@ discard block |
||
3276 | 3298 | return $field; |
3277 | 3299 | } |
3278 | 3300 | |
3301 | + /** |
|
3302 | + * @param string $class |
|
3303 | + */ |
|
3279 | 3304 | function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3280 | 3305 | $field = $this->render_label( '', $id, $label, $required, $required_field_text ); |
3281 | 3306 | foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) { |
@@ -3297,6 +3322,9 @@ discard block |
||
3297 | 3322 | return $field; |
3298 | 3323 | } |
3299 | 3324 | |
3325 | + /** |
|
3326 | + * @param string $class |
|
3327 | + */ |
|
3300 | 3328 | function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3301 | 3329 | $field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>"; |
3302 | 3330 | $field .= "\t\t<input type='checkbox' name='" . esc_attr( $id ) . "' value='" . esc_attr__( 'Yes', 'jetpack' ) . "' " . $class . checked( (bool) $value, true, false ) . ' ' . ( $required ? "required aria-required='true'" : '' ) . "/> \n"; |
@@ -3306,6 +3334,9 @@ discard block |
||
3306 | 3334 | return $field; |
3307 | 3335 | } |
3308 | 3336 | |
3337 | + /** |
|
3338 | + * @param string $class |
|
3339 | + */ |
|
3309 | 3340 | function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3310 | 3341 | $field = $this->render_label( '', $id, $label, $required, $required_field_text ); |
3311 | 3342 | foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) { |
@@ -3321,6 +3352,9 @@ discard block |
||
3321 | 3352 | return $field; |
3322 | 3353 | } |
3323 | 3354 | |
3355 | + /** |
|
3356 | + * @param string $class |
|
3357 | + */ |
|
3324 | 3358 | function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3325 | 3359 | $field = $this->render_label( 'select', $id, $label, $required, $required_field_text ); |
3326 | 3360 | $field .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n"; |
@@ -3338,6 +3372,10 @@ discard block |
||
3338 | 3372 | return $field; |
3339 | 3373 | } |
3340 | 3374 | |
3375 | + /** |
|
3376 | + * @param string $class |
|
3377 | + * @param string $placeholder |
|
3378 | + */ |
|
3341 | 3379 | function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3342 | 3380 | $field = $this->render_label( 'date', $id, $label, $required, $required_field_text ); |
3343 | 3381 | $field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required ); |
@@ -3357,6 +3395,10 @@ discard block |
||
3357 | 3395 | return $field; |
3358 | 3396 | } |
3359 | 3397 | |
3398 | + /** |
|
3399 | + * @param string $class |
|
3400 | + * @param string $placeholder |
|
3401 | + */ |
|
3360 | 3402 | function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) { |
3361 | 3403 | $field = $this->render_label( $type, $id, $label, $required, $required_field_text ); |
3362 | 3404 | $field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required ); |
@@ -415,7 +415,7 @@ |
||
415 | 415 | * |
416 | 416 | * @param array $connections_data |
417 | 417 | * |
418 | - * @return array { |
|
418 | + * @return string { |
|
419 | 419 | * Array of content for generating connection form. |
420 | 420 | * |
421 | 421 | * @type string HTML content of form |
@@ -213,7 +213,6 @@ discard block |
||
213 | 213 | /** |
214 | 214 | * Inject image sizes to Jetpack REST API responses. This wraps the filter_photon_norezise_maybe_inject_sizes function. |
215 | 215 | * |
216 | - * @param array $data Attachment sizes data. |
|
217 | 216 | * @param int $attachment_id Attachment's post ID. |
218 | 217 | * |
219 | 218 | * @return array Attachment sizes array. |
@@ -1257,7 +1256,7 @@ discard block |
||
1257 | 1256 | * after ourselves without breaking anyone else's filters. |
1258 | 1257 | * |
1259 | 1258 | * @internal |
1260 | - * @return true |
|
1259 | + * @return boolean |
|
1261 | 1260 | */ |
1262 | 1261 | public function _override_image_downsize_in_rest_edit_context() { |
1263 | 1262 | return true; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Helper function to look up the expected master user and return the local WP_User. |
54 | 54 | * |
55 | - * @return WP_User Jetpack's expected master user. |
|
55 | + * @return string Jetpack's expected master user. |
|
56 | 56 | */ |
57 | 57 | protected function helper_retrieve_local_master_user() { |
58 | 58 | $master_user = Jetpack_Options::get_option( 'master_user' ); |
@@ -321,6 +321,9 @@ discard block |
||
321 | 321 | return $sync_modules; |
322 | 322 | } |
323 | 323 | |
324 | + /** |
|
325 | + * @return string |
|
326 | + */ |
|
324 | 327 | static function sanitize_filtered_sync_cron_schedule( $schedule ) { |
325 | 328 | $schedule = sanitize_key( $schedule ); |
326 | 329 | $schedules = wp_get_schedules(); |
@@ -358,6 +361,9 @@ discard block |
||
358 | 361 | ); |
359 | 362 | } |
360 | 363 | |
364 | + /** |
|
365 | + * @param string $hook |
|
366 | + */ |
|
361 | 367 | static function maybe_schedule_sync_cron( $schedule, $hook ) { |
362 | 368 | if ( ! $hook ) { |
363 | 369 | return; |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | return (float) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 ); |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param integer $time |
|
81 | + */ |
|
79 | 82 | public function set_next_sync_time( $time, $queue_name ) { |
80 | 83 | return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true ); |
81 | 84 | } |
@@ -106,6 +109,9 @@ discard block |
||
106 | 109 | return $this->do_sync_and_set_delays( $this->sync_queue ); |
107 | 110 | } |
108 | 111 | |
112 | + /** |
|
113 | + * @param Jetpack_Sync_Queue $queue |
|
114 | + */ |
|
109 | 115 | public function do_sync_and_set_delays( $queue ) { |
110 | 116 | // don't sync if importing |
111 | 117 | if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { |
@@ -354,6 +360,10 @@ discard block |
||
354 | 360 | } |
355 | 361 | |
356 | 362 | // in seconds |
363 | + |
|
364 | + /** |
|
365 | + * @param double $seconds |
|
366 | + */ |
|
357 | 367 | function set_max_dequeue_time( $seconds ) { |
358 | 368 | $this->max_dequeue_time = $seconds; |
359 | 369 | } |
@@ -162,6 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Get attachment images for a specified post and return them. Also make sure |
164 | 164 | * their dimensions are at or above a required minimum. |
165 | + * @param integer $post_id |
|
165 | 166 | */ |
166 | 167 | static function from_attachment( $post_id, $width = 200, $height = 200 ) { |
167 | 168 | $images = array(); |
@@ -224,7 +225,7 @@ discard block |
||
224 | 225 | * Check if a Featured Image is set for this post, and return it in a similar |
225 | 226 | * format to the other images?_from_*() methods. |
226 | 227 | * @param int $post_id The post ID to check |
227 | - * @return Array containing details of the Featured Image, or empty array if none. |
|
228 | + * @return integer|null containing details of the Featured Image, or empty array if none. |
|
228 | 229 | */ |
229 | 230 | static function from_thumbnail( $post_id, $width = 200, $height = 200 ) { |
230 | 231 | $images = array(); |
@@ -668,7 +669,6 @@ discard block |
||
668 | 669 | * resized and cropped image. |
669 | 670 | * |
670 | 671 | * @param string $src |
671 | - * @param int $dimension |
|
672 | 672 | * @return string Transformed image URL |
673 | 673 | */ |
674 | 674 | static function fit_image_url( $src, $width, $height ) { |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | * |
716 | 716 | * @param mixed $html_or_id The HTML string to parse for images, or a post id. |
717 | 717 | * |
718 | - * @return array $html_info { |
|
718 | + * @return integer $html_info { |
|
719 | 719 | * @type string $html Post content. |
720 | 720 | * @type string $post_url Post URL. |
721 | 721 | * } |
@@ -682,6 +682,9 @@ |
||
682 | 682 | $this->options_save_other( 'linkedin' ); |
683 | 683 | } |
684 | 684 | |
685 | + /** |
|
686 | + * @param string $service_name |
|
687 | + */ |
|
685 | 688 | function options_save_other( $service_name ) { |
686 | 689 | // Nonce check |
687 | 690 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * This is ported over from the manage module, which has been deprecated and baked in here. |
724 | 724 | * |
725 | 725 | * @param $domains |
726 | - * @return array |
|
726 | + * @return string[] |
|
727 | 727 | */ |
728 | 728 | function allow_wpcom_domain( $domains ) { |
729 | 729 | if ( empty( $domains ) ) { |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | } |
1244 | 1244 | /** |
1245 | 1245 | * Does the network allow admins to add new users. |
1246 | - * @return boolian |
|
1246 | + * @return boolean |
|
1247 | 1247 | */ |
1248 | 1248 | static function network_add_new_users( $option = null ) { |
1249 | 1249 | return (bool) get_site_option( 'add_new_users' ); |
@@ -1348,7 +1348,7 @@ discard block |
||
1348 | 1348 | * database which could be set to anything as opposed to what this function returns. |
1349 | 1349 | * @param bool $option |
1350 | 1350 | * |
1351 | - * @return boolean |
|
1351 | + * @return string |
|
1352 | 1352 | */ |
1353 | 1353 | public function is_main_network_option( $option ) { |
1354 | 1354 | // return '1' or '' |
@@ -1359,7 +1359,7 @@ discard block |
||
1359 | 1359 | * Return true if we are with multi-site or multi-network false if we are dealing with single site. |
1360 | 1360 | * |
1361 | 1361 | * @param string $option |
1362 | - * @return boolean |
|
1362 | + * @return string |
|
1363 | 1363 | */ |
1364 | 1364 | public function is_multisite( $option ) { |
1365 | 1365 | return (string) (bool) is_multisite(); |
@@ -1421,7 +1421,7 @@ discard block |
||
1421 | 1421 | |
1422 | 1422 | /** |
1423 | 1423 | * Returns true if the site has file write access false otherwise. |
1424 | - * @return string ( '1' | '0' ) |
|
1424 | + * @return integer ( '1' | '0' ) |
|
1425 | 1425 | **/ |
1426 | 1426 | public static function file_system_write_access() { |
1427 | 1427 | if ( ! function_exists( 'get_filesystem_method' ) ) { |
@@ -2286,6 +2286,7 @@ discard block |
||
2286 | 2286 | * @param int $user_id |
2287 | 2287 | * @param string $token |
2288 | 2288 | * return bool |
2289 | + * @param boolean $is_master_user |
|
2289 | 2290 | */ |
2290 | 2291 | public static function update_user_token( $user_id, $token, $is_master_user ) { |
2291 | 2292 | // not designed for concurrent updates |
@@ -2688,6 +2689,7 @@ discard block |
||
2688 | 2689 | |
2689 | 2690 | /** |
2690 | 2691 | * Like core's get_file_data implementation, but caches the result. |
2692 | + * @param string $file |
|
2691 | 2693 | */ |
2692 | 2694 | public static function get_file_data( $file, $headers ) { |
2693 | 2695 | //Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated |
@@ -2724,7 +2726,7 @@ discard block |
||
2724 | 2726 | * |
2725 | 2727 | * @param string $tag Tag as it appears in each module heading. |
2726 | 2728 | * |
2727 | - * @return mixed |
|
2729 | + * @return string |
|
2728 | 2730 | */ |
2729 | 2731 | public static function translate_module_tag( $tag ) { |
2730 | 2732 | return jetpack_get_module_i18n_tag( $tag ); |
@@ -2901,8 +2903,8 @@ discard block |
||
2901 | 2903 | * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR |
2902 | 2904 | * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR. |
2903 | 2905 | * |
2904 | - * @param $string |
|
2905 | - * @return mixed |
|
2906 | + * @param string $string |
|
2907 | + * @return string|null |
|
2906 | 2908 | */ |
2907 | 2909 | public static function alias_directories( $string ) { |
2908 | 2910 | // ABSPATH has a trailing slash. |
@@ -3182,6 +3184,9 @@ discard block |
||
3182 | 3184 | return self::update_active_modules( $new ); |
3183 | 3185 | } |
3184 | 3186 | |
3187 | + /** |
|
3188 | + * @param string $module |
|
3189 | + */ |
|
3185 | 3190 | public static function enable_module_configurable( $module ) { |
3186 | 3191 | $module = Jetpack::get_module_slug( $module ); |
3187 | 3192 | add_filter( 'jetpack_module_configurable_' . $module, '__return_true' ); |
@@ -3209,16 +3214,25 @@ discard block |
||
3209 | 3214 | return $url; |
3210 | 3215 | } |
3211 | 3216 | |
3217 | + /** |
|
3218 | + * @param string $module |
|
3219 | + */ |
|
3212 | 3220 | public static function module_configuration_load( $module, $method ) { |
3213 | 3221 | $module = Jetpack::get_module_slug( $module ); |
3214 | 3222 | add_action( 'jetpack_module_configuration_load_' . $module, $method ); |
3215 | 3223 | } |
3216 | 3224 | |
3225 | + /** |
|
3226 | + * @param string $module |
|
3227 | + */ |
|
3217 | 3228 | public static function module_configuration_head( $module, $method ) { |
3218 | 3229 | $module = Jetpack::get_module_slug( $module ); |
3219 | 3230 | add_action( 'jetpack_module_configuration_head_' . $module, $method ); |
3220 | 3231 | } |
3221 | 3232 | |
3233 | + /** |
|
3234 | + * @param string $module |
|
3235 | + */ |
|
3222 | 3236 | public static function module_configuration_screen( $module, $method ) { |
3223 | 3237 | $module = Jetpack::get_module_slug( $module ); |
3224 | 3238 | add_action( 'jetpack_module_configuration_screen_' . $module, $method ); |
@@ -3231,6 +3245,9 @@ discard block |
||
3231 | 3245 | |
3232 | 3246 | /* Installation */ |
3233 | 3247 | |
3248 | + /** |
|
3249 | + * @param string $message |
|
3250 | + */ |
|
3234 | 3251 | public static function bail_on_activation( $message, $deactivate = true ) { |
3235 | 3252 | ?> |
3236 | 3253 | <!doctype html> |
@@ -3970,7 +3987,7 @@ discard block |
||
3970 | 3987 | * Add help to the Jetpack page |
3971 | 3988 | * |
3972 | 3989 | * @since Jetpack (1.2.3) |
3973 | - * @return false if not the Jetpack page |
|
3990 | + * @return false|null if not the Jetpack page |
|
3974 | 3991 | */ |
3975 | 3992 | function admin_help() { |
3976 | 3993 | $current_screen = get_current_screen(); |
@@ -4770,6 +4787,9 @@ discard block |
||
4770 | 4787 | return $url; |
4771 | 4788 | } |
4772 | 4789 | |
4790 | + /** |
|
4791 | + * @return string |
|
4792 | + */ |
|
4773 | 4793 | public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) { |
4774 | 4794 | $actionurl = str_replace( '&', '&', $actionurl ); |
4775 | 4795 | return add_query_arg( $name, wp_create_nonce( $action ), $actionurl ); |
@@ -4937,6 +4957,7 @@ discard block |
||
4937 | 4957 | /** |
4938 | 4958 | * Returns the requested Jetpack API URL |
4939 | 4959 | * |
4960 | + * @param string $relative_url |
|
4940 | 4961 | * @return string |
4941 | 4962 | */ |
4942 | 4963 | public static function api_url( $relative_url ) { |
@@ -5128,6 +5149,7 @@ discard block |
||
5128 | 5149 | * Note these tokens are unique per call, NOT static per site for connecting. |
5129 | 5150 | * |
5130 | 5151 | * @since 2.6 |
5152 | + * @param string $action |
|
5131 | 5153 | * @return array |
5132 | 5154 | */ |
5133 | 5155 | public static function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
@@ -5661,7 +5683,6 @@ discard block |
||
5661 | 5683 | /** |
5662 | 5684 | * Report authentication status to the WP REST API. |
5663 | 5685 | * |
5664 | - * @param WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not |
|
5665 | 5686 | * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication} |
5666 | 5687 | */ |
5667 | 5688 | public function wp_rest_authentication_errors( $value ) { |
@@ -5671,6 +5692,10 @@ discard block |
||
5671 | 5692 | return $this->rest_authentication_status; |
5672 | 5693 | } |
5673 | 5694 | |
5695 | + /** |
|
5696 | + * @param integer $timestamp |
|
5697 | + * @param string $nonce |
|
5698 | + */ |
|
5674 | 5699 | function add_nonce( $timestamp, $nonce ) { |
5675 | 5700 | global $wpdb; |
5676 | 5701 | static $nonces_used_this_request = array(); |
@@ -5816,6 +5841,7 @@ discard block |
||
5816 | 5841 | * @param string $key |
5817 | 5842 | * @param string $value |
5818 | 5843 | * @param bool $restate private |
5844 | + * @return string |
|
5819 | 5845 | */ |
5820 | 5846 | public static function state( $key = null, $value = null, $restate = false ) { |
5821 | 5847 | static $state = array(); |
@@ -5872,6 +5898,9 @@ discard block |
||
5872 | 5898 | Jetpack::state( null, null, true ); |
5873 | 5899 | } |
5874 | 5900 | |
5901 | + /** |
|
5902 | + * @param string $file |
|
5903 | + */ |
|
5875 | 5904 | public static function check_privacy( $file ) { |
5876 | 5905 | static $is_site_publicly_accessible = null; |
5877 | 5906 | |
@@ -6489,9 +6518,7 @@ discard block |
||
6489 | 6518 | * |
6490 | 6519 | * Attached to `style_loader_src` filter. |
6491 | 6520 | * |
6492 | - * @param string $tag The tag that would link to the external asset. |
|
6493 | 6521 | * @param string $handle The registered handle of the script in question. |
6494 | - * @param string $href The url of the asset in question. |
|
6495 | 6522 | */ |
6496 | 6523 | public static function set_suffix_on_min( $src, $handle ) { |
6497 | 6524 | if ( false === strpos( $src, '.min.css' ) ) { |
@@ -6673,8 +6700,8 @@ discard block |
||
6673 | 6700 | * - Absolute URLs `http://domain.com/feh.png` |
6674 | 6701 | * - Domain root relative URLs `/feh.png` |
6675 | 6702 | * |
6676 | - * @param $css string: The raw CSS -- should be read in directly from the file. |
|
6677 | - * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from. |
|
6703 | + * @param string $css string: The raw CSS -- should be read in directly from the file. |
|
6704 | + * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from. |
|
6678 | 6705 | * |
6679 | 6706 | * @return mixed|string |
6680 | 6707 | */ |
@@ -6908,7 +6935,7 @@ discard block |
||
6908 | 6935 | * |
6909 | 6936 | * @param string $option_name |
6910 | 6937 | * |
6911 | - * @return bool |
|
6938 | + * @return false|null |
|
6912 | 6939 | */ |
6913 | 6940 | public static function jumpstart_has_updated_module_option( $option_name = '' ) { |
6914 | 6941 | // Bail if Jump Start has already been dismissed |
@@ -6949,7 +6976,7 @@ discard block |
||
6949 | 6976 | /** |
6950 | 6977 | * Stores and prints out domains to prefetch for page speed optimization. |
6951 | 6978 | * |
6952 | - * @param mixed $new_urls |
|
6979 | + * @param string[] $new_urls |
|
6953 | 6980 | */ |
6954 | 6981 | public static function dns_prefetch( $new_urls = null ) { |
6955 | 6982 | static $prefetch_urls = array(); |
@@ -7003,7 +7030,6 @@ discard block |
||
7003 | 7030 | } |
7004 | 7031 | |
7005 | 7032 | /** |
7006 | - * @param mixed $result Value for the user's option |
|
7007 | 7033 | * @return mixed |
7008 | 7034 | */ |
7009 | 7035 | function get_user_option_meta_box_order_dashboard( $sorted ) { |