@@ -109,9 +109,9 @@ |
||
109 | 109 | * |
110 | 110 | * This cannot be extended: implement `->get()` instead. |
111 | 111 | * |
112 | - * @param mixed $object_data Probably an array. Whatever the endpoint returns. |
|
112 | + * @param integer $object_data Probably an array. Whatever the endpoint returns. |
|
113 | 113 | * @param string $field_name Should always match `->field_name` |
114 | - * @param WP_REST_Request $request |
|
114 | + * @param integer $request |
|
115 | 115 | * @param string $object_type Should always match `->object_type` |
116 | 116 | * @return mixed |
117 | 117 | */ |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | exit; |
16 | 16 | } |
17 | 17 | |
18 | +/** |
|
19 | + * @param string $file_pattern |
|
20 | + */ |
|
18 | 21 | function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) { |
19 | 22 | $plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern ); |
20 | 23 | |
@@ -28,6 +31,9 @@ discard block |
||
28 | 31 | } |
29 | 32 | |
30 | 33 | // API v2 plugins: define a class, then call this function. |
34 | +/** |
|
35 | + * @param string $class_name |
|
36 | + */ |
|
31 | 37 | function wpcom_rest_api_v2_load_plugin( $class_name ) { |
32 | 38 | global $wpcom_rest_api_v2_plugins; |
33 | 39 |
@@ -389,7 +389,7 @@ |
||
389 | 389 | /** |
390 | 390 | * Set the disconnect capability for multisite. |
391 | 391 | * |
392 | - * @param array $caps The capabilities array. |
|
392 | + * @param string[] $caps The capabilities array. |
|
393 | 393 | */ |
394 | 394 | public function set_multisite_disconnect_cap( $caps ) { |
395 | 395 | // Can individual site admins manage their own connection? |
@@ -687,7 +687,6 @@ |
||
687 | 687 | * resized and cropped image. |
688 | 688 | * |
689 | 689 | * @param string $src |
690 | - * @param int $dimension |
|
691 | 690 | * @return string Transformed image URL |
692 | 691 | */ |
693 | 692 | static function fit_image_url( $src, $width, $height ) { |
@@ -956,7 +956,7 @@ discard block |
||
956 | 956 | * This is ported over from the manage module, which has been deprecated and baked in here. |
957 | 957 | * |
958 | 958 | * @param $domains |
959 | - * @return array |
|
959 | + * @return string[] |
|
960 | 960 | */ |
961 | 961 | function allow_wpcom_domain( $domains ) { |
962 | 962 | if ( empty( $domains ) ) { |
@@ -1324,7 +1324,7 @@ discard block |
||
1324 | 1324 | /** |
1325 | 1325 | * Does the network allow admins to add new users. |
1326 | 1326 | * |
1327 | - * @return boolian |
|
1327 | + * @return boolean |
|
1328 | 1328 | */ |
1329 | 1329 | static function network_add_new_users( $option = null ) { |
1330 | 1330 | return (bool) get_site_option( 'add_new_users' ); |
@@ -1434,7 +1434,7 @@ discard block |
||
1434 | 1434 | * |
1435 | 1435 | * @param bool $option |
1436 | 1436 | * |
1437 | - * @return boolean |
|
1437 | + * @return string |
|
1438 | 1438 | */ |
1439 | 1439 | public function is_main_network_option( $option ) { |
1440 | 1440 | // return '1' or '' |
@@ -1445,7 +1445,7 @@ discard block |
||
1445 | 1445 | * Return true if we are with multi-site or multi-network false if we are dealing with single site. |
1446 | 1446 | * |
1447 | 1447 | * @param string $option |
1448 | - * @return boolean |
|
1448 | + * @return string |
|
1449 | 1449 | */ |
1450 | 1450 | public function is_multisite( $option ) { |
1451 | 1451 | return (string) (bool) is_multisite(); |
@@ -1508,7 +1508,7 @@ discard block |
||
1508 | 1508 | /** |
1509 | 1509 | * Returns true if the site has file write access false otherwise. |
1510 | 1510 | * |
1511 | - * @return string ( '1' | '0' ) |
|
1511 | + * @return integer ( '1' | '0' ) |
|
1512 | 1512 | **/ |
1513 | 1513 | public static function file_system_write_access() { |
1514 | 1514 | if ( ! function_exists( 'get_filesystem_method' ) ) { |
@@ -2237,7 +2237,7 @@ discard block |
||
2237 | 2237 | * @param int $user_id The user id. |
2238 | 2238 | * @param string $token The user token. |
2239 | 2239 | * @param bool $is_master_user Whether the user is the master user. |
2240 | - * @return bool |
|
2240 | + * @return boolean|null |
|
2241 | 2241 | */ |
2242 | 2242 | public static function update_user_token( $user_id, $token, $is_master_user ) { |
2243 | 2243 | _deprecated_function( __METHOD__, 'jetpack-8.0', 'Automattic\\Jetpack\\Connection\\Utils::update_user_token' ); |
@@ -2681,7 +2681,7 @@ discard block |
||
2681 | 2681 | * |
2682 | 2682 | * @param string $tag Tag as it appears in each module heading. |
2683 | 2683 | * |
2684 | - * @return mixed |
|
2684 | + * @return string |
|
2685 | 2685 | */ |
2686 | 2686 | public static function translate_module_tag( $tag ) { |
2687 | 2687 | return jetpack_get_module_i18n_tag( $tag ); |
@@ -2796,8 +2796,8 @@ discard block |
||
2796 | 2796 | * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR |
2797 | 2797 | * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR. |
2798 | 2798 | * |
2799 | - * @param $string |
|
2800 | - * @return mixed |
|
2799 | + * @param string $string |
|
2800 | + * @return string|null |
|
2801 | 2801 | */ |
2802 | 2802 | public static function alias_directories( $string ) { |
2803 | 2803 | // ABSPATH has a trailing slash. |
@@ -2808,6 +2808,10 @@ discard block |
||
2808 | 2808 | return $string; |
2809 | 2809 | } |
2810 | 2810 | |
2811 | + /** |
|
2812 | + * @param boolean $redirect |
|
2813 | + * @param boolean $send_state_messages |
|
2814 | + */ |
|
2811 | 2815 | public static function activate_default_modules( |
2812 | 2816 | $min_version = false, |
2813 | 2817 | $max_version = false, |
@@ -3091,6 +3095,9 @@ discard block |
||
3091 | 3095 | return self::update_active_modules( $new ); |
3092 | 3096 | } |
3093 | 3097 | |
3098 | + /** |
|
3099 | + * @param string $module |
|
3100 | + */ |
|
3094 | 3101 | public static function enable_module_configurable( $module ) { |
3095 | 3102 | $module = self::get_module_slug( $module ); |
3096 | 3103 | add_filter( 'jetpack_module_configurable_' . $module, '__return_true' ); |
@@ -3119,6 +3126,10 @@ discard block |
||
3119 | 3126 | } |
3120 | 3127 | |
3121 | 3128 | /* Installation */ |
3129 | + |
|
3130 | + /** |
|
3131 | + * @param string $message |
|
3132 | + */ |
|
3122 | 3133 | public static function bail_on_activation( $message, $deactivate = true ) { |
3123 | 3134 | ?> |
3124 | 3135 | <!doctype html> |
@@ -3164,6 +3175,7 @@ discard block |
||
3164 | 3175 | * Attached to activate_{ plugin_basename( __FILES__ ) } by register_activation_hook() |
3165 | 3176 | * |
3166 | 3177 | * @static |
3178 | + * @param boolean $network_wide |
|
3167 | 3179 | */ |
3168 | 3180 | public static function plugin_activation( $network_wide ) { |
3169 | 3181 | Jetpack_Options::update_option( 'activated', 1 ); |
@@ -3884,7 +3896,7 @@ discard block |
||
3884 | 3896 | * Add help to the Jetpack page |
3885 | 3897 | * |
3886 | 3898 | * @since Jetpack (1.2.3) |
3887 | - * @return false if not the Jetpack page |
|
3899 | + * @return false|null if not the Jetpack page |
|
3888 | 3900 | */ |
3889 | 3901 | function admin_help() { |
3890 | 3902 | $current_screen = get_current_screen(); |
@@ -4588,6 +4600,7 @@ discard block |
||
4588 | 4600 | |
4589 | 4601 | /** |
4590 | 4602 | * Record a stat for later output. This will only currently output in the admin_footer. |
4603 | + * @param string $group |
|
4591 | 4604 | */ |
4592 | 4605 | function stat( $group, $detail ) { |
4593 | 4606 | $this->initialize_stats(); |
@@ -5001,6 +5014,9 @@ discard block |
||
5001 | 5014 | return $url; |
5002 | 5015 | } |
5003 | 5016 | |
5017 | + /** |
|
5018 | + * @param string $actionurl |
|
5019 | + */ |
|
5004 | 5020 | public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) { |
5005 | 5021 | $actionurl = str_replace( '&', '&', $actionurl ); |
5006 | 5022 | return add_query_arg( $name, wp_create_nonce( $action ), $actionurl ); |
@@ -5291,12 +5307,15 @@ discard block |
||
5291 | 5307 | * @param String $action The action name. |
5292 | 5308 | * @param Integer $user_id The user identifier. |
5293 | 5309 | * @param Integer $exp Expiration time in seconds. |
5294 | - * @return array |
|
5310 | + * @return boolean |
|
5295 | 5311 | */ |
5296 | 5312 | public static function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
5297 | 5313 | return self::connection()->generate_secrets( $action, $user_id, $exp ); |
5298 | 5314 | } |
5299 | 5315 | |
5316 | + /** |
|
5317 | + * @param string $action |
|
5318 | + */ |
|
5300 | 5319 | public static function get_secrets( $action, $user_id ) { |
5301 | 5320 | $secrets = self::connection()->get_secrets( $action, $user_id ); |
5302 | 5321 | |
@@ -5547,7 +5566,6 @@ discard block |
||
5547 | 5566 | * @deprecated since 8.9.0 |
5548 | 5567 | * @see Automattic\Jetpack\Connection\Rest_Authentication::wp_rest_authentication_errors() |
5549 | 5568 | * |
5550 | - * @param WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not |
|
5551 | 5569 | * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication} |
5552 | 5570 | */ |
5553 | 5571 | public function wp_rest_authentication_errors( $value ) { |
@@ -5640,6 +5658,7 @@ discard block |
||
5640 | 5658 | * @param string $key |
5641 | 5659 | * @param string $value |
5642 | 5660 | * @param bool $restate private |
5661 | + * @return string |
|
5643 | 5662 | */ |
5644 | 5663 | public static function state( $key = null, $value = null, $restate = false ) { |
5645 | 5664 | static $state = array(); |
@@ -5721,6 +5740,9 @@ discard block |
||
5721 | 5740 | return true; |
5722 | 5741 | } |
5723 | 5742 | |
5743 | + /** |
|
5744 | + * @param string $file |
|
5745 | + */ |
|
5724 | 5746 | public static function check_privacy( $file ) { |
5725 | 5747 | static $is_site_publicly_accessible = null; |
5726 | 5748 | |
@@ -6293,9 +6315,7 @@ discard block |
||
6293 | 6315 | * |
6294 | 6316 | * Attached to `style_loader_src` filter. |
6295 | 6317 | * |
6296 | - * @param string $tag The tag that would link to the external asset. |
|
6297 | 6318 | * @param string $handle The registered handle of the script in question. |
6298 | - * @param string $href The url of the asset in question. |
|
6299 | 6319 | */ |
6300 | 6320 | public static function set_suffix_on_min( $src, $handle ) { |
6301 | 6321 | if ( false === strpos( $src, '.min.css' ) ) { |
@@ -6671,8 +6691,8 @@ discard block |
||
6671 | 6691 | * - Absolute URLs `http://domain.com/feh.png` |
6672 | 6692 | * - Domain root relative URLs `/feh.png` |
6673 | 6693 | * |
6674 | - * @param $css string: The raw CSS -- should be read in directly from the file. |
|
6675 | - * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from. |
|
6694 | + * @param string $css string: The raw CSS -- should be read in directly from the file. |
|
6695 | + * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from. |
|
6676 | 6696 | * |
6677 | 6697 | * @return mixed|string |
6678 | 6698 | */ |
@@ -6971,7 +6991,6 @@ discard block |
||
6971 | 6991 | } |
6972 | 6992 | |
6973 | 6993 | /** |
6974 | - * @param mixed $result Value for the user's option |
|
6975 | 6994 | * @return mixed |
6976 | 6995 | */ |
6977 | 6996 | function get_user_option_meta_box_order_dashboard( $sorted ) { |
@@ -352,6 +352,9 @@ discard block |
||
352 | 352 | return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) ); |
353 | 353 | } |
354 | 354 | |
355 | + /** |
|
356 | + * @param string $type |
|
357 | + */ |
|
355 | 358 | public static function block_attributes_to_shortcode_attributes( $atts, $type ) { |
356 | 359 | $atts['type'] = $type; |
357 | 360 | if ( isset( $atts['className'] ) ) { |
@@ -403,6 +406,10 @@ discard block |
||
403 | 406 | $atts = self::block_attributes_to_shortcode_attributes( $atts, 'checkbox-multiple' ); |
404 | 407 | return Grunion_Contact_Form::parse_contact_field( $atts, $content ); |
405 | 408 | } |
409 | + |
|
410 | + /** |
|
411 | + * @param string $content |
|
412 | + */ |
|
406 | 413 | public static function gutenblock_render_field_radio( $atts, $content ) { |
407 | 414 | $atts = self::block_attributes_to_shortcode_attributes( $atts, 'radio' ); |
408 | 415 | return Grunion_Contact_Form::parse_contact_field( $atts, $content ); |
@@ -2045,7 +2052,6 @@ discard block |
||
2045 | 2052 | * |
2046 | 2053 | * @see ::style() |
2047 | 2054 | * @internal |
2048 | - * @param bool $style |
|
2049 | 2055 | */ |
2050 | 2056 | static function _style_on() { |
2051 | 2057 | return self::style( true ); |
@@ -2236,6 +2242,7 @@ discard block |
||
2236 | 2242 | * |
2237 | 2243 | * @param int $feedback_id |
2238 | 2244 | * @param object Grunion_Contact_Form $form |
2245 | + * @param Grunion_Contact_Form $form |
|
2239 | 2246 | * |
2240 | 2247 | * @return string $message |
2241 | 2248 | */ |
@@ -2394,7 +2401,7 @@ discard block |
||
2394 | 2401 | * |
2395 | 2402 | * @param array $attributes Key => Value pairs as parsed by shortcode_parse_atts() |
2396 | 2403 | * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field] |
2397 | - * @return HTML for the contact form field |
|
2404 | + * @return string for the contact form field |
|
2398 | 2405 | */ |
2399 | 2406 | static function parse_contact_field( $attributes, $content ) { |
2400 | 2407 | // Don't try to parse contact form fields if not inside a contact form |
@@ -3523,6 +3530,9 @@ discard block |
||
3523 | 3530 | |
3524 | 3531 | } |
3525 | 3532 | |
3533 | + /** |
|
3534 | + * @param string $type |
|
3535 | + */ |
|
3526 | 3536 | function render_input_field( $type, $id, $value, $class, $placeholder, $required ) { |
3527 | 3537 | return "<input |
3528 | 3538 | type='". esc_attr( $type ) ."' |
@@ -3534,24 +3544,40 @@ discard block |
||
3534 | 3544 | />\n"; |
3535 | 3545 | } |
3536 | 3546 | |
3547 | + /** |
|
3548 | + * @param string $class |
|
3549 | + * @param string $placeholder |
|
3550 | + */ |
|
3537 | 3551 | function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3538 | 3552 | $field = $this->render_label( 'email', $id, $label, $required, $required_field_text ); |
3539 | 3553 | $field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required ); |
3540 | 3554 | return $field; |
3541 | 3555 | } |
3542 | 3556 | |
3557 | + /** |
|
3558 | + * @param string $class |
|
3559 | + * @param string $placeholder |
|
3560 | + */ |
|
3543 | 3561 | function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3544 | 3562 | $field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text ); |
3545 | 3563 | $field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required ); |
3546 | 3564 | return $field; |
3547 | 3565 | } |
3548 | 3566 | |
3567 | + /** |
|
3568 | + * @param string $class |
|
3569 | + * @param string $placeholder |
|
3570 | + */ |
|
3549 | 3571 | function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3550 | 3572 | $field = $this->render_label( 'url', $id, $label, $required, $required_field_text ); |
3551 | 3573 | $field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required ); |
3552 | 3574 | return $field; |
3553 | 3575 | } |
3554 | 3576 | |
3577 | + /** |
|
3578 | + * @param string $class |
|
3579 | + * @param string $placeholder |
|
3580 | + */ |
|
3555 | 3581 | function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3556 | 3582 | $field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text ); |
3557 | 3583 | $field .= "<textarea |
@@ -3566,6 +3592,9 @@ discard block |
||
3566 | 3592 | return $field; |
3567 | 3593 | } |
3568 | 3594 | |
3595 | + /** |
|
3596 | + * @param string $class |
|
3597 | + */ |
|
3569 | 3598 | function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3570 | 3599 | $field = $this->render_label( '', $id, $label, $required, $required_field_text ); |
3571 | 3600 | foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) { |
@@ -3587,6 +3616,9 @@ discard block |
||
3587 | 3616 | return $field; |
3588 | 3617 | } |
3589 | 3618 | |
3619 | + /** |
|
3620 | + * @param string $class |
|
3621 | + */ |
|
3590 | 3622 | function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3591 | 3623 | $field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>"; |
3592 | 3624 | $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"; |
@@ -3619,6 +3651,9 @@ discard block |
||
3619 | 3651 | return $field; |
3620 | 3652 | } |
3621 | 3653 | |
3654 | + /** |
|
3655 | + * @param string $class |
|
3656 | + */ |
|
3622 | 3657 | function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3623 | 3658 | $field = $this->render_label( '', $id, $label, $required, $required_field_text ); |
3624 | 3659 | foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) { |
@@ -3634,6 +3669,9 @@ discard block |
||
3634 | 3669 | return $field; |
3635 | 3670 | } |
3636 | 3671 | |
3672 | + /** |
|
3673 | + * @param string $class |
|
3674 | + */ |
|
3637 | 3675 | function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) { |
3638 | 3676 | $field = $this->render_label( 'select', $id, $label, $required, $required_field_text ); |
3639 | 3677 | $field .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n"; |
@@ -3651,6 +3689,10 @@ discard block |
||
3651 | 3689 | return $field; |
3652 | 3690 | } |
3653 | 3691 | |
3692 | + /** |
|
3693 | + * @param string $class |
|
3694 | + * @param string $placeholder |
|
3695 | + */ |
|
3654 | 3696 | function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) { |
3655 | 3697 | |
3656 | 3698 | $field = $this->render_label( 'date', $id, $label, $required, $required_field_text ); |
@@ -3681,6 +3723,10 @@ discard block |
||
3681 | 3723 | return $field; |
3682 | 3724 | } |
3683 | 3725 | |
3726 | + /** |
|
3727 | + * @param string $class |
|
3728 | + * @param string $placeholder |
|
3729 | + */ |
|
3684 | 3730 | function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) { |
3685 | 3731 | $field = $this->render_label( $type, $id, $label, $required, $required_field_text ); |
3686 | 3732 | $field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required ); |
@@ -220,6 +220,9 @@ discard block |
||
220 | 220 | <?php |
221 | 221 | } |
222 | 222 | |
223 | + /** |
|
224 | + * @param string $option |
|
225 | + */ |
|
223 | 226 | function admin_likes_get_option( $option ) { |
224 | 227 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
225 | 228 | $option_setting = get_blog_option( get_current_blog_id(), $option, 'on' ); |
@@ -437,6 +440,9 @@ discard block |
||
437 | 440 | return $columns; |
438 | 441 | } |
439 | 442 | |
443 | + /** |
|
444 | + * @param string $content |
|
445 | + */ |
|
440 | 446 | function post_likes( $content ) { |
441 | 447 | $post_id = get_the_ID(); |
442 | 448 |
@@ -388,6 +388,9 @@ discard block |
||
388 | 388 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
389 | 389 | } |
390 | 390 | |
391 | + /** |
|
392 | + * @param string $name |
|
393 | + */ |
|
391 | 394 | public function js_dialog( $name, $params = array() ) { |
392 | 395 | if ( true !== $this->open_link_in_new ) { |
393 | 396 | return; |
@@ -1039,6 +1042,9 @@ discard block |
||
1039 | 1042 | public $icon = '\f204'; |
1040 | 1043 | private $share_type = 'default'; |
1041 | 1044 | |
1045 | + /** |
|
1046 | + * @param string $id |
|
1047 | + */ |
|
1042 | 1048 | public function __construct( $id, array $settings ) { |
1043 | 1049 | parent::__construct( $id, $settings ); |
1044 | 1050 | |
@@ -1186,6 +1192,10 @@ discard block |
||
1186 | 1192 | class Share_Print extends Sharing_Source { |
1187 | 1193 | public $shortname = 'print'; |
1188 | 1194 | public $icon = '\f469'; |
1195 | + |
|
1196 | + /** |
|
1197 | + * @param string $id |
|
1198 | + */ |
|
1189 | 1199 | public function __construct( $id, array $settings ) { |
1190 | 1200 | parent::__construct( $id, $settings ); |
1191 | 1201 | |
@@ -1585,6 +1595,9 @@ discard block |
||
1585 | 1595 | return __( 'Pinterest', 'jetpack' ); |
1586 | 1596 | } |
1587 | 1597 | |
1598 | + /** |
|
1599 | + * @return string |
|
1600 | + */ |
|
1588 | 1601 | public function get_image( $post ) { |
1589 | 1602 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
1590 | 1603 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |
@@ -1724,6 +1737,9 @@ discard block |
||
1724 | 1737 | public $shortname = 'pocket'; |
1725 | 1738 | public $icon = '\f224'; |
1726 | 1739 | |
1740 | + /** |
|
1741 | + * @param string $id |
|
1742 | + */ |
|
1727 | 1743 | public function __construct( $id, array $settings ) { |
1728 | 1744 | parent::__construct( $id, $settings ); |
1729 | 1745 | |
@@ -1839,6 +1855,9 @@ discard block |
||
1839 | 1855 | class Jetpack_Share_WhatsApp extends Sharing_Source { |
1840 | 1856 | public $shortname = 'jetpack-whatsapp'; |
1841 | 1857 | |
1858 | + /** |
|
1859 | + * @param string $id |
|
1860 | + */ |
|
1842 | 1861 | public function __construct( $id, array $settings ) { |
1843 | 1862 | parent::__construct( $id, $settings ); |
1844 | 1863 | } |
@@ -382,7 +382,7 @@ |
||
382 | 382 | * |
383 | 383 | * @param array $query_args The query args of the URL. |
384 | 384 | * |
385 | - * @return array The width and height of the shortcode. |
|
385 | + * @return integer[] The width and height of the shortcode. |
|
386 | 386 | */ |
387 | 387 | function jetpack_shortcode_youtube_dimensions( $query_args ) { |
388 | 388 | global $content_width; |