Skip to content

Commit 7247606

Browse files
committed
Merge branch '1.17.5-rc'
2 parents beb23f1 + 5333062 commit 7247606

7 files changed

Lines changed: 35 additions & 20 deletions

File tree

.vagrant/bootstrap.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if [ ! -f "${runfile}" ]; then
5050
echo " done"
5151

5252
echo "Configuring apache ..."
53+
cp /vagrant/.vagrant/vagrant-mounted.conf /etc/init/ > /dev/null 2> /dev/null
5354
rm -f /etc/apache2/httpd.conf
5455
ln -sf /vagrant/.vagrant/httpd.conf /etc/apache2/httpd.conf
5556
rm -f /etc/apache2/sites-enabled/000-default
@@ -65,6 +66,7 @@ if [ ! -f "${runfile}" ]; then
6566
rm -f /etc/php5/apache2/php.ini
6667
cp -f /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini
6768
fi
69+
echo " done"
6870

6971
fi
7072

@@ -80,11 +82,6 @@ if [ ! -f "${runfile}" ]; then
8082
mv phpunit.phar /usr/local/bin/phpunit
8183
echo " done"
8284

83-
# Fixing issues with WordPress API host
84-
echo "Adding entries to hosts file ..."
85-
echo "66.155.40.202 api.wordpress.org" >> /etc/hosts
86-
echo " done"
87-
8885
touch "${runfile}"
8986

9087
fi

.vagrant/vagrant-mounted.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
start on vagrant-mounted
2+
3+
exec sudo service apache2 start

.vagrant/wordpress.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,37 @@ publicIp=$(/sbin/ifconfig eth1 | grep 'inet addr:' | cut -d: -f2 | awk '{ print
77

88
if [ ! -f "${runfile}" ]; then
99

10-
echo "Installing wordpress ..."
10+
echo "Installing WordPress ..."
1111
rm -rf /var/www/*
1212
git clone --depth 1 --branch $wpVersion git://develop.git.wordpress.org/ /var/www > /dev/null
13+
echo " done"
1314

14-
echo "Configure wordpress ..."
15+
echo "Configuring WordPress ..."
1516
# rm -f /var/www/wp-config.php
1617
# cp -fs /vagrant/.vagrant/wp-config.php /var/www/wp-config.php
1718
rm -f /var/www/src/.htaccess
1819
cp -f /vagrant/.vagrant/wp-htaccess /var/www/src/.htaccess
1920
export WP_DEVELOP_DIR=/var/www
2021
cp -f /vagrant/.vagrant/wp-tests-config.php /var/www/wp-tests-config.php
22+
echo " done"
2123

22-
echo "Set project directory ..."
24+
echo "Setting project directory: /var/www/src/wp-content/plugins/wolfnet-idx-for-wordpress"
2325
ln -fs "/wolfnet-idx-for-wordpress" "/var/www/src/wp-content/plugins/wolfnet-idx-for-wordpress"
2426

25-
echo "Updating file ownership ..."
27+
echo "Updating file ownership of /var/www"
2628
chown -R www-data:www-data /var/www
2729

28-
echo "Configure mysql ..."
30+
echo "Configuring mysql ..."
2931
cat /vagrant/.vagrant/wp-prep.sql | mysql -u root
3032
# cat /vagrant/.vagrant/wp3.5.1-setup.sql | mysql -u root
33+
echo " done"
3134

3235
echo "Start apache ..."
3336
service apache2 start
37+
echo " done"
38+
39+
echo "Performing WordPress Setup ..."
3440

35-
echo "Perform WordPress Setup ..."
3641
curl -s -d "dbname=wordpress&uname=root&pwd=&dbhost=localhost&prefix=wp_" \
3742
-H "Host:${publicIp}" http://127.0.0.1/wp-admin/setup-config.php?step=2 > /dev/null
3843

@@ -44,6 +49,8 @@ if [ ! -f "${runfile}" ]; then
4449
# Enable WordPress Debug mode - here because the config file does exist until this point.
4550
sed -i "s/define('WP_DEBUG', false);/define('WP_DEBUG', true);/g" /var/www/wp-config.php
4651

52+
echo " done"
53+
4754
touch "${runfile}"
4855

4956
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wolfnet-idx-for-wordpress",
3-
"version": "1.17.4",
3+
"version": "1.17.5",
44
"description": "WolfNet IDX for WordPress",
55
"homepage": "https://github.com/wolfnet/wordpressplugin",
66
"bugs": "https://github.com/wolfnet/wordpressplugin/issues",

readme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ License URI: | https://www.gnu.org/licenses/gpl-2.0.html
1515
website.
1616

1717
## Description
18-
The WolfNet IDX for WordPress plugin provides IDX search solution integration with any WordPress
19-
website. To integrate WolfNet IDX data with your WordPress website, you must have a WolfNet IDX
20-
property search solution. To activate the plugin, you must have a unique product key. Please contact
21-
WolfNet Customer Service for support via phone at 612-342-0088 or toll free at 1-866-WOLFNET, or via
22-
email at service@wolfnet.com. You may also find us online at [WolfNet.com](http://wolfnet.com).
18+
The WolfNet IDX for WordPress plugin provides IDX search solution integration with any WordPress website. To integrate WolfNet IDX data with your WordPress website, you must have a WolfNet IDX property search solution. To access MLS data, you must have a unique product key. Contact WolfNet for more information.
2319

2420
## Installation
2521
There are no special instructions for installing the plugin, however a valid product key must be
@@ -93,6 +89,11 @@ Please upgrade to the latest version of the plugin as we will be disabling our o
9389

9490
## Changelog
9591

92+
### 1.17.5
93+
94+
* Fix for the error-handling in the Search Manager
95+
* Fix to prevent older Quick Search widgets from using keys that no longer exist
96+
9697
### 1.17.4
9798

9899
* Fix to keep the featured listings scroller from halting at some widths

src/module/QuickSearch.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,32 @@ public function routeQuickSearch($formData)
7878
$highestMatchKey = '';
7979

8080
foreach (explode(',', $formData['keyids']) as $keyID) {
81+
8182
try {
83+
8284
$key = $this->plugin->keyService->getById($keyID);
8385

86+
if ($key != null) {
8487
$listings = $this->plugin->api->sendRequest(
8588
$key,
8689
'/listing?detaillevel=1&startrow=1&maxrows=1',
8790
'GET',
8891
$formData
8992
);
93+
9094
$count = $listings['responseData']['data']['total_rows'];
9195

92-
if($count > $highestCount) {
96+
if ($count > $highestCount) {
9397
$highestCount = $count;
9498
$highestMatchKey = $key;
9599
}
100+
101+
}
102+
96103
} catch (Wolfnet_Exception $e) {
97104
echo $this->plugin->displayException($e);
98105
}
106+
99107
}
100108

101109
/*

src/module/SearchManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ public function searchManagerHtml($productKey = null)
9898
return array('body' => '');
9999
}
100100
} else {
101-
$http['body'] = $this->plugin->getWpError($http);
102-
return $http;
101+
return array('body' => $this->plugin->getWpError($http));
103102
}
104103

105104
}

0 commit comments

Comments
 (0)