Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Fields/MultisitePostObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ public function polylang_filter( $args ) {
* @param mixed $field Field.
* @param integer $post_id Post ID.
* @param integer $is_search Is search.
* @param boolean $unescape Unescape.
*
* @return string
*/
public function get_post_title( $post, $field, $post_id = 0, $is_search = 0 ) {
public function get_post_title( $post, $field, $post_id = 0, $is_search = 0, $unescape = false ) {
\switch_to_blog( $field['blog_id'] );
$title = parent::get_post_title( $post, $field, $post_id, $is_search );
$title = parent::get_post_title( $post, $field, $post_id, $is_search, $unescape );
\restore_current_blog();

// return
Expand Down