fixe for prime_term_cache()
-
Again if the event_cat taxonomy does not exit then this function will create an error, sof best to change this function to check for an error:
if ( ! empty( $terms ) && !is_wp_error($terms)) {
foreach ( $terms as $term ) {
$cache[ $term->object_id ][ $term->taxonomy ][] = $term->term_id;
}}`
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘fixe for prime_term_cache()’ is closed to new replies.