Importing posts breaks this plugin
-
Hi,
It seems that when importing posts, it will break this plugin. It gives this error:
“polylang array_intersect_key(): Argument #1 is not an array”
Chancing line 180 of file “translated-object.php” to this:
if(isset($translations) && is_array($translations)) { $translations = array_intersect_key( $translations, array_flip( $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) ); }
Fixes the problem. I wish you could include this fix in to the next release, please.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Importing posts breaks this plugin’ is closed to new replies.