Page stop rendering on cp_breadcrumb
Hi,
I detected that some of my very old ads were not rendered when displaying on the webbrowser.
I checked the code and the bug was in theme-functions.php in cp_breadcrumb function.
In my case (v3.1.2) in the line 1520:
$term = wp_get_object_terms($post->ID, APP_TAX_CAT);
$term gets empty, if the code continues from this, it throws an error on the next loop stopping the rendering.
I added this on the line 1521 to solve it:
if ( empty($term) ) { break; }
And now it works like a charm. Is this a right solution?