| @@ -11,15 +11,15 @@ | ||
| 11 | 11 | ?> |
| 12 | 12 | |
| 13 | 13 | <?php do_action( 'propertyhive_before_search_form', $id ); ?> |
| 14 | 14 | |
| 15 | -<form name="ph_property_search" class="property-search-form property-search-form-<?php echo esc_attr($id); ?> clear" action="<?php echo apply_filters( 'propertyhive_search_form_action', get_post_type_archive_link( 'property' ) ); ?>" method="get" role="form"> | |
| 15 | +<form name="ph_property_search" class="property-search-form property-search-form-<?php echo esc_attr($id); ?> clear" action="<?php echo esc_url( apply_filters( 'propertyhive_search_form_action', get_post_type_archive_link( 'property' ) ) ); ?>" method="get" role="form"> | |
| 16 | 16 | |
| 17 | 17 | <?php do_action( 'propertyhive_before_search_form_controls', $id, $form_controls ); ?> |
| 18 | 18 | |
| 19 | - <?php foreach ( $form_controls as $key => $field ) : ?> | |
| 19 | + <?php foreach ( $form_controls as $propertyhive_key => $propertyhive_field ) : ?> | |
| 20 | 20 | |
| 21 | - <?php ph_form_field( $key, $field ); ?> | |
| 21 | + <?php ph_form_field( $propertyhive_key, $propertyhive_field ); ?> | |
| 22 | 22 | |
| 23 | 23 | <?php endforeach; ?> |
| 24 | 24 | |
| 25 | 25 | <?php do_action( 'propertyhive_after_search_form_controls', $id, $form_controls ); ?> |