Skip to content

Commit

Permalink
Merge branch 'main' into release/0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Sep 25, 2023
2 parents 80c1186 + 5a23d02 commit 0469b28
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.0']
php: ['8.2']

steps:
- name: Cancel previous runs of this workflow (pull requests only)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false # do not fail fast, let all the failing tests fail.
matrix:
php: [8.0]
php: [8.2]
es_version: [7.17.5, 8.10.2]
multisite: [0]
wp_version: ["latest"]
Expand All @@ -18,7 +18,7 @@ jobs:
es_version: '8.10.2'
multisite: 0
wp_version: '5.9.3'
- php: '7.4'
- php: '8.0'
es_version: '6.8.23'
multisite: 1
wp_version: '5.9.3'
Expand Down
4 changes: 2 additions & 2 deletions lib/class-sp-indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static function cast_meta_types( $value, $types = array() ) {
}
if (
( isset( $types['date'] ) || isset( $types['datetime'] ) || isset( $types['time'] ) )
&& strlen( $value ) <= 255 // Limit date/time strings to 255 chars for performance.
&& strlen( (string) $value ) <= 255 // Limit date/time strings to 255 chars for performance.
) {
$time = false;
$int = (int) $value;
Expand All @@ -93,7 +93,7 @@ public static function cast_meta_types( $value, $types = array() ) {
if ( (string) $int === (string) $value ) {
$time = $int;
} elseif ( ! is_numeric( $value ) ) {
$time = strtotime( $value );
$time = strtotime( (string) $value );
}

if ( false !== $time ) {
Expand Down
7 changes: 7 additions & 0 deletions lib/class-sp-sync-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class SP_Sync_Manager extends SP_Singleton {
*/
public $published_posts = false;

/**
* Stores a cache of userdata to speed up indexing.
*
* @var array
*/
public $users = [];

/**
* Sync a single post (on creation or update)
*
Expand Down

0 comments on commit 0469b28

Please sign in to comment.