Update to WP 4.3 caused error
-
I’ve updated to WordPress 4.3 and now am seeing the following error message on my pages —
Warning: Invalid argument supplied for foreach() in …../plugins/printfriendly/pf.php on line 170Line 170 contains this code:
function is_main_query_loop(){
and there’s the whole ‘block’ in that area:
/** * Returns true if the content displayed by main WP query * @since 3.4.1 * **/ function is_main_query_loop(){ $is_main_query_loop = false; foreach ($GLOBALS['wp_the_query']->posts as $query_post) { if($query_post->ID == get_the_ID() ){ $is_main_query_loop = true; break; } } return $is_main_query_loop; }
Appreciate any help, thanks!!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Update to WP 4.3 caused error’ is closed to new replies.