@@ -135,6 +135,9 @@ discard block |
||
| 135 | 135 | exit; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $version |
|
| 140 | + */ |
|
| 138 | 141 | function asset_version( $version ) { |
| 139 | 142 | /** |
| 140 | 143 | * Filter the version string used when enqueuing Carousel assets. |
@@ -508,6 +511,9 @@ discard block |
||
| 508 | 511 | return $attr; |
| 509 | 512 | } |
| 510 | 513 | |
| 514 | + /** |
|
| 515 | + * @param string $html |
|
| 516 | + */ |
|
| 511 | 517 | function add_data_to_container( $html ) { |
| 512 | 518 | global $post; |
| 513 | 519 | if ( Jetpack_AMP_Support::is_amp_request() ) { |
@@ -751,6 +757,9 @@ discard block |
||
| 751 | 757 | return ( 1 == $value ) ? 1 : 0; |
| 752 | 758 | } |
| 753 | 759 | |
| 760 | + /** |
|
| 761 | + * @param string $name |
|
| 762 | + */ |
|
| 754 | 763 | function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) { |
| 755 | 764 | if ( empty( $name ) ) { |
| 756 | 765 | return; |
@@ -766,6 +775,9 @@ discard block |
||
| 766 | 775 | echo '</fieldset>'; |
| 767 | 776 | } |
| 768 | 777 | |
| 778 | + /** |
|
| 779 | + * @param string $name |
|
| 780 | + */ |
|
| 769 | 781 | function settings_select( $name, $values, $extra_text = '' ) { |
| 770 | 782 | if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) { |
| 771 | 783 | return; |
@@ -346,6 +346,9 @@ discard block |
||
| 346 | 346 | </div><?php |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | + /** |
|
| 350 | + * @param string $service_name |
|
| 351 | + */ |
|
| 349 | 352 | public static function options_page_other( $service_name ) { |
| 350 | 353 | // Nonce check |
| 351 | 354 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |
@@ -769,7 +772,7 @@ discard block |
||
| 769 | 772 | * |
| 770 | 773 | * @param array $connections_data |
| 771 | 774 | * |
| 772 | - * @return array { |
|
| 775 | + * @return string { |
|
| 773 | 776 | * Array of content for generating connection form. |
| 774 | 777 | * |
| 775 | 778 | * @type string HTML content of form |
@@ -872,6 +875,9 @@ discard block |
||
| 872 | 875 | return ob_get_clean(); |
| 873 | 876 | } |
| 874 | 877 | |
| 878 | + /** |
|
| 879 | + * @return string |
|
| 880 | + */ |
|
| 875 | 881 | private function google_plus_shut_down_notice() { |
| 876 | 882 | return wp_kses( |
| 877 | 883 | sprintf( |
@@ -250,7 +250,6 @@ discard block |
||
| 250 | 250 | * Echoes out items for the Gutenberg block |
| 251 | 251 | * |
| 252 | 252 | * @param array $related_post The post oject |
| 253 | - * @param array $block attributes The block attributes |
|
| 254 | 253 | */ |
| 255 | 254 | public function render_block_item( $related_post, $block_attributes ) { |
| 256 | 255 | ?> |
@@ -473,6 +472,9 @@ discard block |
||
| 473 | 472 | return $this->_options; |
| 474 | 473 | } |
| 475 | 474 | |
| 475 | + /** |
|
| 476 | + * @param string $option_name |
|
| 477 | + */ |
|
| 476 | 478 | public function get_option( $option_name ) { |
| 477 | 479 | $options = $this->get_options(); |
| 478 | 480 | |
@@ -1620,6 +1622,8 @@ discard block |
||
| 1620 | 1622 | * Enqueues assets needed to do async loading of related posts. |
| 1621 | 1623 | * |
| 1622 | 1624 | * @uses wp_enqueue_script, wp_enqueue_style, plugins_url |
| 1625 | + * @param boolean $script |
|
| 1626 | + * @param boolean $style |
|
| 1623 | 1627 | * @return null |
| 1624 | 1628 | */ |
| 1625 | 1629 | protected function _enqueue_assets( $script, $style ) { |