@@ -353,6 +353,7 @@ discard block |
||
353 | 353 | * @param string|array $where |
354 | 354 | * @param string $order_by |
355 | 355 | * @param string $limit |
356 | + * @param boolean $unique |
|
356 | 357 | */ |
357 | 358 | private static function get_ids_query( $where, $order_by, $limit, $unique, $args, array &$query ) { |
358 | 359 | global $wpdb; |
@@ -423,6 +424,9 @@ discard block |
||
423 | 424 | $query[] = FrmDb::prepend_and_or_where( ' WHERE ', $where ) . $order_by . $limit; |
424 | 425 | } |
425 | 426 | |
427 | + /** |
|
428 | + * @param string $field_id |
|
429 | + */ |
|
426 | 430 | public static function search_entry_metas( $search, $field_id, $operator ) { |
427 | 431 | $cache_key = 'search_' . FrmAppHelper::maybe_json_encode( $search ) . $field_id . $operator; |
428 | 432 | $results = wp_cache_get( $cache_key, 'frm_entry' ); |
@@ -562,6 +562,7 @@ discard block |
||
562 | 562 | * Also called during database migration in FrmMigrate. |
563 | 563 | * |
564 | 564 | * @since 4.0 |
565 | + * @param string $type |
|
565 | 566 | * @return array |
566 | 567 | */ |
567 | 568 | public static function migrate_field_placeholder( $field, $type ) { |
@@ -1217,6 +1218,7 @@ discard block |
||
1217 | 1218 | * The line endings may prevent html from being equal when it should |
1218 | 1219 | * |
1219 | 1220 | * @since 3.06 |
1221 | + * @param string $html_name |
|
1220 | 1222 | */ |
1221 | 1223 | private static function remove_default_html( $html_name, $defaults, &$options ) { |
1222 | 1224 | if ( ! isset( $options[ $html_name ] ) || ! isset( $defaults[ $html_name ] ) ) { |
@@ -1290,6 +1292,7 @@ discard block |
||
1290 | 1292 | * Migrate post settings to form action |
1291 | 1293 | * |
1292 | 1294 | * @param string $post_type |
1295 | + * @param boolean $switch |
|
1293 | 1296 | */ |
1294 | 1297 | private static function migrate_post_settings_to_action( $form_options, $form_id, $post_type, &$imported, $switch ) { |
1295 | 1298 | if ( ! isset( $form_options['create_post'] ) || ! $form_options['create_post'] ) { |
@@ -1368,8 +1371,8 @@ discard block |
||
1368 | 1371 | * @since 2.0 |
1369 | 1372 | * |
1370 | 1373 | * @param array $post_content - check for old field IDs |
1371 | - * @param array $basic_fields - fields with string or int saved |
|
1372 | - * @param array $array_fields - fields with arrays saved |
|
1374 | + * @param string[] $basic_fields - fields with string or int saved |
|
1375 | + * @param string[] $array_fields - fields with arrays saved |
|
1373 | 1376 | * |
1374 | 1377 | * @return string $post_content - new field IDs |
1375 | 1378 | */ |
@@ -1404,6 +1407,10 @@ discard block |
||
1404 | 1407 | return $post_content; |
1405 | 1408 | } |
1406 | 1409 | |
1410 | + /** |
|
1411 | + * @param string $post_type |
|
1412 | + * @param boolean $switch |
|
1413 | + */ |
|
1407 | 1414 | private static function migrate_email_settings_to_action( $form_options, $form_id, $post_type, &$imported, $switch ) { |
1408 | 1415 | // No old notifications or autoresponders to carry over |
1409 | 1416 | if ( ! isset( $form_options['auto_responder'] ) && ! isset( $form_options['notification'] ) && ! isset( $form_options['email_to'] ) ) { |
@@ -1671,8 +1678,8 @@ discard block |
||
1671 | 1678 | /** |
1672 | 1679 | * PHP 8 backward compatibility for the libxml_disable_entity_loader function |
1673 | 1680 | * |
1674 | - * @param boolean $disable |
|
1675 | 1681 | * |
1682 | + * @param boolean $loader |
|
1676 | 1683 | * @return boolean |
1677 | 1684 | */ |
1678 | 1685 | public static function maybe_libxml_disable_entity_loader( $loader ) { |