@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | public $context; |
17 | 17 | public $site; |
18 | 18 | |
19 | + /** |
|
20 | + * @param Jetpack_Site $site |
|
21 | + */ |
|
19 | 22 | function __construct( $site, $post, $context ) { |
20 | 23 | $this->post = $post; |
21 | 24 | $this->context = $context; |
@@ -508,6 +511,9 @@ discard block |
||
508 | 511 | return $suggestions; |
509 | 512 | } |
510 | 513 | |
514 | + /** |
|
515 | + * @param string $context |
|
516 | + */ |
|
511 | 517 | private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) { |
512 | 518 | // Permissions |
513 | 519 | switch ( $context ) { |
@@ -281,8 +281,6 @@ |
||
281 | 281 | /** |
282 | 282 | * Builds map display HTML code from the supplied latitude and longitude. |
283 | 283 | * |
284 | - * @param float $lat Map Latitude |
|
285 | - * @param float $lon Map Longitude |
|
286 | 284 | * |
287 | 285 | * @return string HTML of the map |
288 | 286 | */ |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Constructor |
65 | - * @param array $css contains the class csstidy |
|
65 | + * @param csstidy $css contains the class csstidy |
|
66 | 66 | * @access private |
67 | 67 | * @version 1.0 |
68 | 68 | */ |
@@ -401,6 +401,10 @@ discard block |
||
401 | 401 | } |
402 | 402 | |
403 | 403 | // functions |
404 | + |
|
405 | + /** |
|
406 | + * @param string $name |
|
407 | + */ |
|
404 | 408 | public function get_callable( $name ) { |
405 | 409 | $value = get_option( 'jetpack_' . $name ); |
406 | 410 | |
@@ -640,6 +644,9 @@ discard block |
||
640 | 644 | return $histogram; |
641 | 645 | } |
642 | 646 | |
647 | + /** |
|
648 | + * @param string|null $id_column |
|
649 | + */ |
|
643 | 650 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null ) { |
644 | 651 | global $wpdb; |
645 | 652 |
@@ -699,8 +699,7 @@ discard block |
||
699 | 699 | * Render the events |
700 | 700 | * |
701 | 701 | * @param string $url (default: '') |
702 | - * @param string $context (default: 'widget') or 'shortcode' |
|
703 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
702 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
704 | 703 | */ |
705 | 704 | public function render( $url = '', $args = array() ) { |
706 | 705 | |
@@ -857,8 +856,7 @@ discard block |
||
857 | 856 | * Wrapper function for iCalendarReader->render() |
858 | 857 | * |
859 | 858 | * @param string $url (default: '') |
860 | - * @param string $context (default: 'widget') or 'shortcode' |
|
861 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
859 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
862 | 860 | */ |
863 | 861 | function icalendar_render_events( $url = '', $args = array() ) { |
864 | 862 | $ical = new iCalendarReader(); |
@@ -107,7 +107,6 @@ |
||
107 | 107 | /** |
108 | 108 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
109 | 109 | * |
110 | - * @param mixed $identity username, user_id, or WP_user object |
|
111 | 110 | * @param string $event_name The name of the event |
112 | 111 | * @param array $properties Custom properties to send with the event |
113 | 112 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -1404,7 +1404,7 @@ |
||
1404 | 1404 | /** |
1405 | 1405 | * Migration routine for moving safecss from wp_options to wp_posts to support revisions |
1406 | 1406 | * |
1407 | - * @return void |
|
1407 | + * @return false|null |
|
1408 | 1408 | */ |
1409 | 1409 | static function upgrade() { |
1410 | 1410 | $css = get_option( 'safecss' ); |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * |
160 | 160 | * @since 4.3.0 |
161 | 161 | * |
162 | - * @return array Array of Jetpack modules. |
|
162 | + * @return string Array of Jetpack modules. |
|
163 | 163 | */ |
164 | 164 | public function get_modules() { |
165 | 165 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -247,6 +247,11 @@ discard block |
||
247 | 247 | ) ); |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param string $path |
|
252 | + * @param string $classname |
|
253 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
254 | + */ |
|
250 | 255 | public static function route( $path, $classname, $method, |
251 | 256 | $constructor_arguments = NULL, |
252 | 257 | $endpoint_arguments = NULL |
@@ -876,7 +881,6 @@ discard block |
||
876 | 881 | * @since 4.3.0 |
877 | 882 | * |
878 | 883 | * @param string $module Module slug. If empty, it's assumed we're updating a module and we'll try to get its slug. |
879 | - * @param bool $cache Whether to cache the options or return always fresh. |
|
880 | 884 | * |
881 | 885 | * @return array |
882 | 886 | */ |
@@ -1753,7 +1757,7 @@ discard block |
||
1753 | 1757 | * |
1754 | 1758 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1755 | 1759 | * |
1756 | - * @return array |
|
1760 | + * @return string |
|
1757 | 1761 | */ |
1758 | 1762 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1759 | 1763 | |
@@ -1778,7 +1782,7 @@ discard block |
||
1778 | 1782 | * @param string $modules Can be a single module or a list of modules. |
1779 | 1783 | * @param null|string $slug Slug of the module in the first parameter. |
1780 | 1784 | * |
1781 | - * @return array |
|
1785 | + * @return string |
|
1782 | 1786 | */ |
1783 | 1787 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
1784 | 1788 | if ( get_option( 'permalink_structure' ) ) { |