Skip to content

Commit

Permalink
PHP 8.1 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomafin committed Feb 2, 2023
1 parent 5b8b3b5 commit 1303cdd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.0.3] _ 2023-02-02

### Changed
- PHP 8.1 compatibility fix

## [2.0.2] - 2023-01-23

### Changed
Expand Down
9 changes: 8 additions & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: RediPress
* Plugin URI: https://github.com/devgeniem/redipress
* Description: A WordPress plugin that provides a blazing fast search engine and WP Query performance enhancements.
* Version: 2.0.2
* Version: 2.0.3
* Author: Geniem
* Author URI: http://www.geniem.fi/
* License: GPL3
Expand Down Expand Up @@ -53,6 +53,13 @@ class RediPressPlugin {
*/
public $debug = false;

/**
* Plugin public url
*
* @var string
*/
public $url = '';

/**
* Run the basic plugin functionalities
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function format( array $source ) : array {
$source = self::recursive_to_string( $source );

// Remove possible first integer
if ( filter_var( $source[0], FILTER_VALIDATE_INT ) ) {
if ( isset( $source[0] ) && filter_var( $source[0], FILTER_VALIDATE_INT ) ) {
unset( $source[0] );
}

Expand Down

0 comments on commit 1303cdd

Please sign in to comment.