Skip to content

Commit

Permalink
backward compatibility with php7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Aug 19, 2022
1 parent 2c689ad commit beae9cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mailgun.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Mailgun
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
* Description: Mailgun integration for WordPress
* Version: 1.8.0
* Version: 1.8.1
* Author: Mailgun
* Author URI: http://www.mailgun.com/
* License: GPLv2 or later
Expand Down Expand Up @@ -327,7 +327,7 @@ public function add_list()
* @throws JsonException
* @since 0.1
*/
public function list_form(string $list_address, array $args = [], array $instance = []): void
public function list_form(string $list_address, array $args = [], array $instance = [])
{
$widget_class_id = "mailgun-list-widget-{$args['widget_id']}";
$form_class_id = "list-form-{$args['widget_id']}";
Expand Down Expand Up @@ -491,7 +491,7 @@ public function build_list_form(array $atts): string
*
* @since 0.1
*/
public function load_list_widget(): void
public function load_list_widget()
{
register_widget('list_widget');
add_shortcode('mailgun', [&$this, 'build_list_form']);
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contributors: mailgun, sivel, lookahead.io, m35dev
Tags: mailgun, smtp, http, api, mail, email
Requires at least: 3.3
Tested up to: 6.0.1
Stable tag: 1.8.0
Stable tag: 1.8.1
License: GPLv2 or later


Expand Down Expand Up @@ -131,6 +131,9 @@ MAILGUN_FROM_ADDRESS Type: string


== Changelog ==
= 1.8.1 (2022-08-19): =
- backward compatibility with php7.0

= 1.8.0 (2022-08-18): =
- Plugin refactoring. Using new languages constructions. Extended readme. Update version

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contributors: mailgun, sivel, lookahead.io, m35dev
Tags: mailgun, smtp, http, api, mail, email
Requires at least: 3.3
Tested up to: 6.0.1
Stable tag: 1.8.0
Stable tag: 1.8.1
License: GPLv2 or later


Expand Down Expand Up @@ -128,6 +128,9 @@ MAILGUN_FROM_ADDRESS Type: string


== Changelog ==
= 1.8.1 (2022-08-19): =
- backward compatibility with php7.0

= 1.8.0 (2022-08-18): =
- Plugin refactoring. Using new languages constructions. Extended readme. Update version

Expand Down

0 comments on commit beae9cc

Please sign in to comment.