Ticket #21201: 21201.diff

File 21201.diff, 598 bytes (added by Latz, 10 months ago)
Line 
1Index: wp-includes/category.php
2===================================================================
3--- wp-includes/category.php    (revision 21247)
4+++ wp-includes/category.php    (working copy)
5@@ -165,10 +165,10 @@
6  *
7  * @since 1.0.0
8  *
9- * @param string $cat_name Optional. Default is 'General' and can be any category name.
10+ * @param string $cat_name.
11  * @return int 0, if failure and ID of category on success.
12  */
13-function get_cat_ID( $cat_name='General' ) {
14+function get_cat_ID( $cat_name ) {
15        $cat = get_term_by( 'name', $cat_name, 'category' );
16        if ( $cat )
17                return $cat->term_id;