Ticket #24354: 24354.diff
File 24354.diff, 503 bytes (added by , 11 years ago) |
---|
-
wp-includes/category.php
169 169 * @return int 0, if failure and ID of category on success. 170 170 */ 171 171 function get_cat_ID( $cat_name ) { 172 $cat_name = _wp_specialchars( $cat_name ); // get_term_by expects $cat_name to be escaped 172 173 $cat = get_term_by( 'name', $cat_name, 'category' ); 173 174 if ( $cat ) 174 175 return $cat->term_id;