Skip to content

Commit

Permalink
Merge pull request #28 from hivepress/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
hivepress committed Jul 6, 2022
2 parents 69daae3 + 31c37fd commit 0cfe038
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hivepress-geolocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: HivePress Geolocation
* Description: Allow users to search listings by location.
* Version: 1.3.5
* Version: 1.3.6
* Author: HivePress
* Author URI: https://hivepress.io/
* Text Domain: hivepress-geolocation
Expand Down
9 changes: 7 additions & 2 deletions includes/components/class-geolocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function add_attributes( $attributes ) {
'type' => 'location',
'countries' => $countries,
'required' => true,
'_order' => 25,
'_order' => 35,
],

'search_field' => [
Expand Down Expand Up @@ -247,7 +247,7 @@ public function enqueue_scripts() {
'region' => hivepress()->translator->get_region(),
]
),
[ 'hivepress-geolocation' ],
[],
null,
true
);
Expand All @@ -266,6 +266,11 @@ public function enqueue_scripts() {
public function alter_scripts( $scripts ) {
if ( get_option( 'hp_geolocation_provider' ) === 'mapbox' ) {
$scripts['geolocation']['deps'][] = 'mapbox-language';
} else {
$scripts['geolocation']['deps'] = array_merge(
$scripts['geolocation']['deps'],
[ 'geocomplete', 'markerclustererplus', 'markerspiderfier' ]
);
}

return $scripts;
Expand Down
1 change: 0 additions & 1 deletion includes/fields/class-latitude.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => null,
'type' => 'DECIMAL(8,6)',
'sortable' => false,
],
$meta
Expand Down
1 change: 0 additions & 1 deletion includes/fields/class-longitude.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => null,
'type' => 'DECIMAL(9,6)',
'sortable' => false,
],
$meta
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: hivepress, geolocation, directory, listings, classifieds
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.0
Stable tag: 1.3.5
Stable tag: 1.3.6
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down

0 comments on commit 0cfe038

Please sign in to comment.