Ticket #15082: 15082.diff
| File 15082.diff, 564 bytes (added by , 15 years ago) |
|---|
-
wp-includes/post.php
966 966 if ( false !== $args->rewrite && '' != get_option('permalink_structure') ) { 967 967 if ( ! is_array( $args->rewrite ) ) 968 968 $args->rewrite = array(); 969 if ( ! isset( $args->rewrite['slug'] ) )969 if ( empty( $args->rewrite['slug'] ) ) 970 970 $args->rewrite['slug'] = $post_type; 971 971 if ( ! isset( $args->rewrite['with_front'] ) ) 972 972 $args->rewrite['with_front'] = true;