[Plugin: Events Manager] Widgets fail on bad Category IDs
-
The “Event” and “Event Calendar” widgets do not check to see that the Category IDs requested are actually real. This causes a MySQL error.
(So how do we find out what the Event Manager Category IDs are?)
em-object.php version 5.1.3 lines 337-344
}elseif( self::array_is_numeric($category) ){ $term_ids = array(); foreach($category as $category_id){ term = new EM_Category($category_id); if( $term !== false && !is_wp_error($term) ){ $term_ids[] = $term->term_taxonomy_id; } }
$term->term_taxonomy_id needs to be checked to see if it actually has anything.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Events Manager] Widgets fail on bad Category IDs’ is closed to new replies.