Skip to content

Commit c81ba6b

Browse files
authored
Merge pull request #118 from devgeniem/redipress-2.0-indexing-fix
Fix undefined method error in RediPress functionalities
2 parents 40f0083 + 85580f0 commit c81ba6b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
[Unreleased]
88

9+
## [1.38.3]
10+
### Fixed
11+
- Fixes undefined method error in RediPress functionalities
12+
913
## [1.38.2]
1014
### Fixed
1115
- Fixes "Automatic conversion of false to array is deprecated" on Dust.php

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: ACF Codifier
44
Plugin URI: https://github.com/devgeniem/acf-codifier
55
Description: A helper class to make defining ACF field groups and fields easier in the code.
6-
Version: 1.38.0
6+
Version: 1.38.3
77
Author: Miika Arponen / Geniem Oy
88
Author URI: https://geniem.fi
99
License: GPL-3.0

src/Field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ protected static function redipress_include_search_filter( $value, $post_id, arr
805805

806806
if ( is_string( $redipress_value ) || is_array( $redipress_value ) || is_int( $redipress_value ) ) {
807807
if ( strpos( $post_id, 'block_' ) !== false &&
808-
! ( $post_id = \Geniem\RediPress\Index\Index::indexing() ) // phpcs:ignore
808+
! ( $post_id = \Geniem\RediPress\Index\PostIndex::indexing() ) // phpcs:ignore
809809
) {
810810
$document_uri = filter_input( INPUT_SERVER, 'DOCUMENT_URI', \FILTER_SANITIZE_STRING );
811811

@@ -924,7 +924,7 @@ private function redipress_add_queryable_internal() {
924924
$doc_id = \Geniem\RediPress\Index\PostIndex::get_document_id( get_post( $post_id ) );
925925
}
926926
elseif ( strpos( $post_id, 'block_' ) !== false ) {
927-
if ( ! ( $post_id = \Geniem\RediPress\Index\Index::indexing() ) ) {
927+
if ( ! ( $post_id = \Geniem\RediPress\Index\PostIndex::indexing() ) ) {
928928
$document_uri = filter_input( INPUT_SERVER, 'DOCUMENT_URI', \FILTER_SANITIZE_STRING );
929929

930930
$post_id = basename( $document_uri );

0 commit comments

Comments
 (0)