@@ -253,6 +253,8 @@ |
||
253 | 253 | * And we'll magically convert it to a list. This has the added benefit |
254 | 254 | * of including itemprops for the recipe schema. |
255 | 255 | * |
256 | + * @param string $content |
|
257 | + * @param string $type |
|
256 | 258 | * @return string content formatted as a list item |
257 | 259 | */ |
258 | 260 | static function output_list_content( $content, $type ) { |
@@ -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 ) { |
@@ -163,6 +163,12 @@ discard block |
||
163 | 163 | |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param string $action_name |
|
168 | + * @param string $id_field |
|
169 | + * @param string|null $where_sql |
|
170 | + * @param string $status_name |
|
171 | + */ |
|
166 | 172 | private function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $status_name ) { |
167 | 173 | global $wpdb; |
168 | 174 | |
@@ -299,6 +305,9 @@ discard block |
||
299 | 305 | return $args; |
300 | 306 | } |
301 | 307 | |
308 | + /** |
|
309 | + * @param string $meta_type |
|
310 | + */ |
|
302 | 311 | private function get_metadata( $ids, $meta_type ) { |
303 | 312 | global $wpdb; |
304 | 313 | $table = _get_meta_table( $meta_type ); |
@@ -406,6 +415,9 @@ discard block |
||
406 | 415 | return null; |
407 | 416 | } |
408 | 417 | |
418 | + /** |
|
419 | + * @param integer $total |
|
420 | + */ |
|
409 | 421 | private function set_send_status( $name, $count = 0, $total = null ) { |
410 | 422 | $transient_name = self::$status_transient_name . '_send_' . $name; |
411 | 423 | if ( $count !== 0 ) { |