@@ -102,9 +102,9 @@ |
||
102 | 102 | * Parameters are the same as preg_replace, with an added optional search param for improved performance |
103 | 103 | * |
104 | 104 | * @param String $pattern |
105 | - * @param String $replacement |
|
106 | 105 | * @param String $content |
107 | 106 | * @param String $search |
107 | + * @param string $callback |
|
108 | 108 | * @return String $content |
109 | 109 | */ |
110 | 110 | function jetpack_preg_replace_callback_outside_tags( $pattern, $callback, $content, $search = null ) { |
@@ -170,6 +170,12 @@ discard block |
||
170 | 170 | $this->set_status( 'posts', 100 ); |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $action_name |
|
175 | + * @param string $id_field |
|
176 | + * @param string|null $where_sql |
|
177 | + * @param string $status_name |
|
178 | + */ |
|
173 | 179 | private function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $status_name ) { |
174 | 180 | global $wpdb; |
175 | 181 | |
@@ -301,6 +307,9 @@ discard block |
||
301 | 307 | return $args; |
302 | 308 | } |
303 | 309 | |
310 | + /** |
|
311 | + * @param string $meta_type |
|
312 | + */ |
|
304 | 313 | private function get_metadata( $ids, $meta_type ) { |
305 | 314 | global $wpdb; |
306 | 315 | $table = _get_meta_table( $meta_type ); |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | return $this->id; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @return string |
|
45 | + */ |
|
43 | 46 | public function get_share_url( $post_id ) { |
44 | 47 | /** |
45 | 48 | * Filter the sharing permalink. |
@@ -311,6 +314,9 @@ discard block |
||
311 | 314 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
312 | 315 | } |
313 | 316 | |
317 | + /** |
|
318 | + * @param string $name |
|
319 | + */ |
|
314 | 320 | public function js_dialog( $name, $params = array() ) { |
315 | 321 | if ( true !== $this->open_link_in_new ) |
316 | 322 | return; |
@@ -1407,6 +1413,9 @@ discard block |
||
1407 | 1413 | return __( 'Pinterest', 'jetpack' ); |
1408 | 1414 | } |
1409 | 1415 | |
1416 | + /** |
|
1417 | + * @return string |
|
1418 | + */ |
|
1410 | 1419 | public function get_image( $post ) { |
1411 | 1420 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
1412 | 1421 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |