Skip to content

Commit

Permalink
Version 1.5.2
Browse files Browse the repository at this point in the history
* Compable with WordPress 5.0.3.
* Fix: Excel-export of recipients did not work unless "SMS Inbox" was enabled.
* Fix: Notices in Excel-export.
  • Loading branch information
bitnissen committed Jan 13, 2019
1 parent 8db676f commit 543b695
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 1 addition & 2 deletions gatewayapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: GatewayAPI
Plugin URI: https://wordpress.org/plugins/gatewayapi/
Description: Send SMS'es through WordPress.
Version: 1.5.1
Version: 1.5.2
Author: OnlineCity ApS
Author URI: http://onlinecity.dk
License: MIT
Expand Down Expand Up @@ -106,7 +106,6 @@ function _gwapi_initialize_cf7_submit($form)
// only include receive-sms ui if receive-sms is enabled
if (get_option('gwapi_receive_sms_enable')) {
include "$D/inc/cpt_receive_sms_ui.php";
include_once "$D/lib/xlsxwriter.class.php";
}
}

Expand Down
3 changes: 2 additions & 1 deletion inc/cpt_receive_sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function _gwapi_receive_sms_json_handler()
$q = new WP_Query($args);
switch ($format) {
case 'xlsx':
include_once __DIR__."/../lib/xlsxwriter.class.php";
$writer = new \XLSXWriter();
$headers = [];
foreach ($metas as $meta) {
Expand All @@ -216,7 +217,7 @@ function _gwapi_receive_sms_json_handler()
foreach ($metas as $meta) {
$columns[] = isset($metadata[$meta]) ? $metadata[$meta][0] : '';
}
$writer->writeSheetRow('Sheet1', $columns);
@$writer->writeSheetRow('Sheet1', $columns);
}
echo $writer->writeToString();
break;
Expand Down
3 changes: 2 additions & 1 deletion inc/cpt_recipient_listing_ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@

switch ($format) {
case 'xlsx':
include_once __DIR__."/../lib/xlsxwriter.class.php";
$writer = new \XLSXWriter();
$headers = [];
foreach ($metas as $metaName) {
Expand All @@ -114,7 +115,7 @@
foreach ($metas as $metaID=>$metaName) {
$columns[] = isset($metadata[$metaID]) ? $metadata[$metaID][0] : '';
}
$writer->writeSheetRow('Sheet1', $columns);
@$writer->writeSheetRow('Sheet1', $columns);

$q->next_post();
}
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: onlinecity
Tags: sms, two factor, security, mobile, texting
Requires at least: 4.6
Tested up to: 4.9.8
Stable tag: 1.5.1
Tested up to: 5.0.3
Stable tag: 1.5.2
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -125,6 +125,11 @@ Then find the `options`-table, by default `wp_options`. Search for the row where

== Changelog ==

= 1.5.2 =
* Compable with WordPress 5.0.3.
* Fix: Excel-export of recipients did not work unless "SMS Inbox" was enabled.
* Fix: Notices in Excel-export.

= 1.5.1 =
* Updated Danish translations (primarily the two-factor settings and frontend).
* Fix: Our shortcode had unintentionally been renamed. We now support both `[gwapi]` and `[gatewayapi]`.
Expand Down

0 comments on commit 543b695

Please sign in to comment.