@@ -4,10 +4,20 @@ discard block |
||
4 | 4 | require_once dirname( __FILE__ ) . '/class.json-api-site-base.php'; |
5 | 5 | |
6 | 6 | abstract class Abstract_Jetpack_Site extends SAL_Site { |
7 | + |
|
8 | + /** |
|
9 | + * @param string $name |
|
10 | + */ |
|
7 | 11 | abstract protected function get_constant( $name ); |
8 | 12 | |
13 | + /** |
|
14 | + * @param string $feature_name |
|
15 | + */ |
|
9 | 16 | abstract protected function current_theme_supports( $feature_name ); |
10 | 17 | |
18 | + /** |
|
19 | + * @param string $feature_name |
|
20 | + */ |
|
11 | 21 | abstract protected function get_theme_support( $feature_name ); |
12 | 22 | |
13 | 23 | abstract protected function get_mock_option( $name ); |
@@ -16,6 +26,9 @@ discard block |
||
16 | 26 | |
17 | 27 | abstract public function get_updates(); |
18 | 28 | |
29 | + /** |
|
30 | + * @return string |
|
31 | + */ |
|
19 | 32 | abstract protected function main_network_site(); |
20 | 33 | |
21 | 34 | abstract protected function wp_version(); |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | * Empty and reset the replicastore. |
21 | 21 | * |
22 | 22 | * @access public |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function reset(); |
25 | 26 | |
@@ -29,6 +30,7 @@ discard block |
||
29 | 30 | * @access public |
30 | 31 | * |
31 | 32 | * @param array $config Full sync configuration for this sync module. |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function full_sync_start( $config ); |
34 | 36 | |
@@ -38,6 +40,7 @@ discard block |
||
38 | 40 | * @access public |
39 | 41 | * |
40 | 42 | * @param string $checksum Deprecated since 7.3.0. |
43 | + * @return void |
|
41 | 44 | */ |
42 | 45 | public function full_sync_end( $checksum ); |
43 | 46 | |
@@ -51,6 +54,7 @@ discard block |
||
51 | 54 | * @param string $status Post status. |
52 | 55 | * @param int $min_id Minimum post ID. |
53 | 56 | * @param int $max_id Maximum post ID. |
57 | + * @return integer |
|
54 | 58 | */ |
55 | 59 | public function post_count( $status = null, $min_id = null, $max_id = null ); |
56 | 60 | |
@@ -81,6 +85,7 @@ discard block |
||
81 | 85 | * |
82 | 86 | * @param \WP_Post $post Post object. |
83 | 87 | * @param bool $silent Whether to perform a silent action. |
88 | + * @return void |
|
84 | 89 | */ |
85 | 90 | public function upsert_post( $post, $silent = false ); |
86 | 91 | |
@@ -90,6 +95,7 @@ discard block |
||
90 | 95 | * @access public |
91 | 96 | * |
92 | 97 | * @param int $post_id Post ID. |
98 | + * @return void |
|
93 | 99 | */ |
94 | 100 | public function delete_post( $post_id ); |
95 | 101 | |
@@ -121,6 +127,7 @@ discard block |
||
121 | 127 | * @param string $status Comment status. |
122 | 128 | * @param int $min_id Minimum comment ID. |
123 | 129 | * @param int $max_id Maximum comment ID. |
130 | + * @return integer |
|
124 | 131 | */ |
125 | 132 | public function comment_count( $status = null, $min_id = null, $max_id = null ); |
126 | 133 | |
@@ -150,6 +157,7 @@ discard block |
||
150 | 157 | * @access public |
151 | 158 | * |
152 | 159 | * @param \WP_Comment $comment Comment object. |
160 | + * @return void |
|
153 | 161 | */ |
154 | 162 | public function upsert_comment( $comment ); |
155 | 163 | |
@@ -159,6 +167,7 @@ discard block |
||
159 | 167 | * @access public |
160 | 168 | * |
161 | 169 | * @param int $comment_id Comment ID. |
170 | + * @return void |
|
162 | 171 | */ |
163 | 172 | public function trash_comment( $comment_id ); |
164 | 173 | |
@@ -168,6 +177,7 @@ discard block |
||
168 | 177 | * @access public |
169 | 178 | * |
170 | 179 | * @param int $comment_id Comment ID. |
180 | + * @return void |
|
171 | 181 | */ |
172 | 182 | public function spam_comment( $comment_id ); |
173 | 183 | |
@@ -177,6 +187,7 @@ discard block |
||
177 | 187 | * @access public |
178 | 188 | * |
179 | 189 | * @param int $comment_id Comment ID. |
190 | + * @return void |
|
180 | 191 | */ |
181 | 192 | public function delete_comment( $comment_id ); |
182 | 193 | |
@@ -187,6 +198,7 @@ discard block |
||
187 | 198 | * |
188 | 199 | * @param int $post_id Post ID. |
189 | 200 | * @param array $statuses Post statuses. |
201 | + * @return void |
|
190 | 202 | */ |
191 | 203 | public function trashed_post_comments( $post_id, $statuses ); |
192 | 204 | |
@@ -196,6 +208,7 @@ discard block |
||
196 | 208 | * @access public |
197 | 209 | * |
198 | 210 | * @param int $post_id Post ID. |
211 | + * @return void |
|
199 | 212 | */ |
200 | 213 | public function untrashed_post_comments( $post_id ); |
201 | 214 | |
@@ -226,6 +239,7 @@ discard block |
||
226 | 239 | * |
227 | 240 | * @param string $option Option name. |
228 | 241 | * @param mixed $value Option value. |
242 | + * @return boolean|null |
|
229 | 243 | */ |
230 | 244 | public function update_option( $option, $value ); |
231 | 245 | |
@@ -245,6 +259,7 @@ discard block |
||
245 | 259 | * @access public |
246 | 260 | * |
247 | 261 | * @param string $option Name of option to remove. |
262 | + * @return boolean|null |
|
248 | 263 | */ |
249 | 264 | public function delete_option( $option ); |
250 | 265 | |
@@ -254,6 +269,7 @@ discard block |
||
254 | 269 | * @access public |
255 | 270 | * |
256 | 271 | * @param array $theme_info Theme info array. |
272 | + * @return void |
|
257 | 273 | */ |
258 | 274 | public function set_theme_info( $theme_info ); |
259 | 275 | |
@@ -288,6 +304,7 @@ discard block |
||
288 | 304 | * @param string $meta_key Meta key. |
289 | 305 | * @param mixed $meta_value Meta value. |
290 | 306 | * @param int $meta_id ID of the meta. |
307 | + * @return boolean|null |
|
291 | 308 | */ |
292 | 309 | public function upsert_metadata( $type, $object_id, $meta_key, $meta_value, $meta_id ); |
293 | 310 | |
@@ -299,6 +316,7 @@ discard block |
||
299 | 316 | * @param string $type Meta type. |
300 | 317 | * @param int $object_id ID of the object. |
301 | 318 | * @param array $meta_ids IDs of the meta objects to delete. |
319 | + * @return false|null |
|
302 | 320 | */ |
303 | 321 | public function delete_metadata( $type, $object_id, $meta_ids ); |
304 | 322 | |
@@ -310,6 +328,7 @@ discard block |
||
310 | 328 | * @param string $type Meta type. |
311 | 329 | * @param array $object_ids IDs of the objects. |
312 | 330 | * @param string $meta_key Meta key. |
331 | + * @return false|null |
|
313 | 332 | */ |
314 | 333 | public function delete_batch_metadata( $type, $object_ids, $meta_key ); |
315 | 334 | |
@@ -350,6 +369,7 @@ discard block |
||
350 | 369 | * |
351 | 370 | * @param string $type Type of updates to set. |
352 | 371 | * @param int $updates Total number of updates. |
372 | + * @return void |
|
353 | 373 | */ |
354 | 374 | public function set_updates( $type, $updates ); |
355 | 375 | |
@@ -369,6 +389,7 @@ discard block |
||
369 | 389 | * |
370 | 390 | * @param string $callable Callable name. |
371 | 391 | * @param mixed $value Callable value. |
392 | + * @return void |
|
372 | 393 | */ |
373 | 394 | public function set_callable( $callable, $value ); |
374 | 395 | |
@@ -388,6 +409,7 @@ discard block |
||
388 | 409 | * |
389 | 410 | * @param string $option Network option name. |
390 | 411 | * @param mixed $value Network option value. |
412 | + * @return boolean|null |
|
391 | 413 | */ |
392 | 414 | public function update_site_option( $option, $value ); |
393 | 415 | |
@@ -397,6 +419,7 @@ discard block |
||
397 | 419 | * @access public |
398 | 420 | * |
399 | 421 | * @param string $option Name of option to remove. |
422 | + * @return boolean|null |
|
400 | 423 | */ |
401 | 424 | public function delete_site_option( $option ); |
402 | 425 | |
@@ -458,6 +481,7 @@ discard block |
||
458 | 481 | * @param string $taxonomy The context in which to relate the term to the object. |
459 | 482 | * @param string|int|array $terms A single term slug, single term id, or array of either term slugs or ids. |
460 | 483 | * @param bool $append Optional. If false will delete difference of terms. Default false. |
484 | + * @return void |
|
461 | 485 | */ |
462 | 486 | public function update_object_terms( $object_id, $taxonomy, $terms, $append ); |
463 | 487 | |
@@ -470,6 +494,7 @@ discard block |
||
470 | 494 | * |
471 | 495 | * @param int $object_id ID of the object. |
472 | 496 | * @param array $tt_ids Term taxonomy IDs. |
497 | + * @return boolean|null |
|
473 | 498 | */ |
474 | 499 | public function delete_object_terms( $object_id, $tt_ids ); |
475 | 500 | |
@@ -477,6 +502,7 @@ discard block |
||
477 | 502 | * Retrieve the number of users. |
478 | 503 | * |
479 | 504 | * @access public |
505 | + * @return null|integer |
|
480 | 506 | */ |
481 | 507 | public function user_count(); |
482 | 508 | |
@@ -495,6 +521,7 @@ discard block |
||
495 | 521 | * @access public |
496 | 522 | * |
497 | 523 | * @param \WP_User $user User object. |
524 | + * @return void |
|
498 | 525 | */ |
499 | 526 | public function upsert_user( $user ); |
500 | 527 | |
@@ -504,6 +531,7 @@ discard block |
||
504 | 531 | * @access public |
505 | 532 | * |
506 | 533 | * @param int $user_id User ID. |
534 | + * @return void |
|
507 | 535 | */ |
508 | 536 | public function delete_user( $user_id ); |
509 | 537 | |
@@ -514,6 +542,7 @@ discard block |
||
514 | 542 | * |
515 | 543 | * @param int $user_id User ID. |
516 | 544 | * @param string $locale The user locale. |
545 | + * @return void |
|
517 | 546 | */ |
518 | 547 | public function upsert_user_locale( $user_id, $locale ); |
519 | 548 | |
@@ -523,6 +552,7 @@ discard block |
||
523 | 552 | * @access public |
524 | 553 | * |
525 | 554 | * @param int $user_id User ID. |
555 | + * @return void |
|
526 | 556 | */ |
527 | 557 | public function delete_user_locale( $user_id ); |
528 | 558 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param string $object_type Type of the sync object. |
69 | 69 | * @param int $id ID of the sync object. |
70 | - * @return mixed Object, or false if the object is invalid. |
|
70 | + * @return boolean Object, or false if the object is invalid. |
|
71 | 71 | */ |
72 | 72 | public function get_object_by_id( $object_type, $id ) { |
73 | 73 | return false; |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @access public |
126 | 126 | * |
127 | - * @param array $config Full sync configuration for this sync module. |
|
127 | + * @param boolean $config Full sync configuration for this sync module. |
|
128 | 128 | * @param int $max_items_to_enqueue Maximum number of items to enqueue. |
129 | 129 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
130 | 130 | * @return array Number of actions enqueued, and next module state. |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | * @access protected |
167 | 167 | * |
168 | 168 | * @param array $action_names Action names we're interested in. |
169 | - * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
170 | - * @return array Number of actions that we're interested in. |
|
169 | + * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
170 | + * @return integer Number of actions that we're interested in. |
|
171 | 171 | */ |
172 | 172 | protected function count_actions( $action_names, $actions_to_count ) { |
173 | 173 | return count( array_intersect( $action_names, $actions_to_count ) ); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /** |
286 | 286 | * Given the Module Full Sync Configuration and Status return the next chunk of items to send. |
287 | 287 | * |
288 | - * @param array $config This module Full Sync configuration. |
|
288 | + * @param string $config This module Full Sync configuration. |
|
289 | 289 | * @param array $status This module Full Sync status. |
290 | 290 | * @param int $chunk_size Chunk size. |
291 | 291 | * |
@@ -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 ) { |
@@ -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 |