Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
246 stars 50 forks source link

Error right after installation #368

Open JatGitHub opened 3 years ago

JatGitHub commented 3 years ago

When installing Babble on Wordpress 5.6 NL I get this error (warning)

Warning: Parameter 2 to Babble_Post_Public::the_posts() expected to be a reference, value given in /home/divineful1/domains/divinefulness.info/public_html/wp-includes/class-wp-hook.php on line 287

Please advice

carrasko commented 3 years ago

After beigh searching for a little bit, i went to class-post-public.php file and edited the line 536 from: public function the_posts( array $posts, WP_Query & $wp_query ) {

to this: public function the_posts( array $posts, WP_Query $wp_query ) {

the "&" is to pass references trough variables.

The error dissapears but in future updates if is not fixed it wil return.