@@ -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 ) { |
@@ -182,6 +182,12 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $action_name |
|
| 187 | + * @param string $id_field |
|
| 188 | + * @param string|null $where_sql |
|
| 189 | + * @param string $status_name |
|
| 190 | + */ |
|
| 185 | 191 | private function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $status_name ) { |
| 186 | 192 | global $wpdb; |
| 187 | 193 | |
@@ -306,6 +312,9 @@ discard block |
||
| 306 | 312 | return $args; |
| 307 | 313 | } |
| 308 | 314 | |
| 315 | + /** |
|
| 316 | + * @param string $meta_type |
|
| 317 | + */ |
|
| 309 | 318 | private function get_metadata( $ids, $meta_type ) { |
| 310 | 319 | global $wpdb; |
| 311 | 320 | $table = _get_meta_table( $meta_type ); |
@@ -358,6 +367,10 @@ discard block |
||
| 358 | 367 | error_log( print_r( $this->get_send_status(),1 )); |
| 359 | 368 | } |
| 360 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $name |
|
| 372 | + * @param integer $total |
|
| 373 | + */ |
|
| 361 | 374 | private function set_send_status( $name, $count = 0, $total = null ) { |
| 362 | 375 | $transient_name = self::$status_transient_name . '_send_' . $name; |
| 363 | 376 | if ( $count !== 0 ) { |