Skip to content

Commit

Permalink
Merge pull request #64 from Bynder/fix/php8-error
Browse files Browse the repository at this point in the history
Remove second arg from spl_autoload_register, in accordance with PHP8 updates
  • Loading branch information
HughbertD authored Aug 30, 2023
2 parents ddbeab8 + 9820ea7 commit 903658a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GatherContent Plugin -- Version 3.2.16 #
# GatherContent Plugin -- Version 3.2.17 #

This plugin allows you to transfer content from your GatherContent projects into your WordPress site and vice-versa.

Expand Down Expand Up @@ -47,6 +47,9 @@ Below the text box is a button that will allow you to simply save all of that in

## Changelog ##

### 3.2.17 ###
* Updated `spl_autoload_register` to be PHP8 compatible

### 3.2.16 ###
* Reformatting version file

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gathercontent/wp-importer",
"description": "Imports items from GatherContent to your wordpress site",
"version": "3.2.16",
"version": "3.2.17",
"type": "wordpress-plugin",
"keywords": [],
"homepage": "http://www.gathercontent.com",
Expand Down
6 changes: 3 additions & 3 deletions gathercontent-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: GatherContent Plugin
* Plugin URI: http://www.gathercontent.com
* Description: Imports items from GatherContent to your wordpress site
* Version: 3.2.16
* Version: 3.2.17
* Author: GatherContent
* Requires PHP: 7.0
* Author URI: http://www.gathercontent.com
Expand Down Expand Up @@ -31,8 +31,8 @@
*/

// Useful global constants
define( 'GATHERCONTENT_VERSION', '3.2.16' );
define( 'GATHERCONTENT_ENQUEUE_VERSION', '3.2.16' );
define( 'GATHERCONTENT_VERSION', '3.2.17' );
define( 'GATHERCONTENT_ENQUEUE_VERSION', '3.2.17' );
define( 'GATHERCONTENT_SLUG', 'gathercontent-import' );
define( 'GATHERCONTENT_PLUGIN', __FILE__ );
define( 'GATHERCONTENT_URL', plugin_dir_url( __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/functions/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function setup() {
return __NAMESPACE__ . "\\$function";
};

spl_autoload_register( $n( 'autoload' ), false );
spl_autoload_register($n( 'autoload' ));

include_once GATHERCONTENT_PATH . 'vendor/autoload.php';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gathercontent-importer",
"title": "GatherContent Plugin",
"description": "Imports items from GatherContent to your wordpress site",
"version": "3.2.16",
"version": "3.2.17",
"license": "GPLv2",
"homepage": "http://www.gathercontent.com",
"repository": {
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: gathercontent, mathew-chapman, namshee, justinsainton
Donate link: http://www.gathercontent.com
Tags: structured content, gather content, gathercontent, import, migrate, export, mapping, production, writing, collaboration, platform, connect, link, gather, client, word, production
Requires at least: 5.6.0
Tested up to: 6.1
Stable tag: 3.2.16
Tested up to: 6.3
Stable tag: 3.2.17
License: GPL-2.0+
Requires PHP: 7.0
License URI: https://opensource.org/licenses/GPL-2.0
Expand Down Expand Up @@ -65,6 +65,9 @@ Below the text box is a button that will allow you to simply save all of that in

== Changelog ==

= 3.2.17 =
* Updated spl_autoload_register to be PHP8 compatible

= 3.2.16 =
* Reformatting version file

Expand Down

0 comments on commit 903658a

Please sign in to comment.