Changeset 37707
- Timestamp:
- 06/14/2016 11:11:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r37685 r37707 192 192 if ( empty($category) ) { 193 193 $default_category = get_term( get_option( 'default_category' ), 'category' ); 194 $category = is_wp_error( $default_category ) ? '' : $default_category->slug; 194 if ( $default_category && ! is_wp_error( $default_category ) ) { 195 $category = $default_category->slug; 196 } 195 197 } 196 198 }
Note: See TracChangeset
for help on using the changeset viewer.