Skip to content

Commit

Permalink
fix access to non existent key
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Jan 17, 2024
1 parent 24a7a64 commit 2def24f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
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": "wordlift-plugin",
"description": "WordLift brings the power of Artificial Intelligence to organize content. Attract new readers and get their true attention with top notch semantic seo.",
"private": true,
"version": "3.52.2",
"version": "3.52.3",
"author": "WordLift",
"homepage": "https://wordift.io/",
"license": "GPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/install/class-wordlift-install-3-52-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Wordlift_Install_3_52_1 extends Wordlift_Install {
/**
* {@inheritdoc}
*/
protected static $version = '3.52.2';
protected static $version = '3.52.3';

public function install() {
// Since we're fixing JSON-LDs better flush them all.
Expand Down
10 changes: 6 additions & 4 deletions src/modules/include-exclude/includes/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ class Configuration {

protected function __construct() {
$include_exclude_data = get_option( 'wl_exclude_include_urls_settings', array() );
$this->type = in_array(
$include_exclude_data['include_exclude'],
$include_exclude = isset( $include_exclude_data['include_exclude'] ) ? (array) $include_exclude_data['include_exclude'] : array();

$this->type = in_array(
$include_exclude,
array(
'include',
'exclude',
),
true
)
? $include_exclude_data['include_exclude'] : 'exclude';
$this->urls = $include_exclude_data['urls'];
? $include_exclude : 'exclude';
$this->urls = $include_exclude_data['urls'];
}

public static function get_instance() {
Expand Down
4 changes: 4 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ You can open your datasets to the public, attaching to it a free or a commercial

== Changelog ==

= 3.52.3 (2024-01-17) =

* Remove some warnings ⚠️ when trying to access an array key that doesn't exist.

= 3.52.2 (2024-01-09) =

* Include/Exclude now applies to REST API as well ⚙️
Expand Down
4 changes: 2 additions & 2 deletions src/wordlift.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: WordLift
* Plugin URI: https://wordlift.io
* Description: WordLift brings the power of AI to organize content, attract new readers and get their attention. To activate the plugin <a href="https://wordlift.io/">visit our website</a>.
* Version: 3.52.2
* Version: 3.52.3
* Author: WordLift
* Author URI: https://wordlift.io
* License: GPL-2.0+
Expand All @@ -32,7 +32,7 @@
use Wordlift\Post\Post_Adapter;

define( 'WORDLIFT_PLUGIN_FILE', __FILE__ );
define( 'WORDLIFT_VERSION', '3.52.2' );
define( 'WORDLIFT_VERSION', '3.52.3' );

// ## DO NOT REMOVE THIS LINE: WHITELABEL PLACEHOLDER ##

Expand Down

0 comments on commit 2def24f

Please sign in to comment.