Skip to content

Commit be3f9e3

Browse files
Fix multisite post obj compatibility with ACF v6.3 (#126)
1 parent db8ef87 commit be3f9e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Fields/MultisitePostObject.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ public function polylang_filter( $args ) {
9595
* @param mixed $field Field.
9696
* @param integer $post_id Post ID.
9797
* @param integer $is_search Is search.
98+
* @param boolean $unescape Unescape.
9899
*
99100
* @return string
100101
*/
101-
public function get_post_title( $post, $field, $post_id = 0, $is_search = 0 ) {
102+
public function get_post_title( $post, $field, $post_id = 0, $is_search = 0, $unescape = false ) {
102103
\switch_to_blog( $field['blog_id'] );
103-
$title = parent::get_post_title( $post, $field, $post_id, $is_search );
104+
$title = parent::get_post_title( $post, $field, $post_id, $is_search, $unescape );
104105
\restore_current_blog();
105106

106107
// return

0 commit comments

Comments
 (0)