Skip to content

Commit

Permalink
capitalize cat titles awesomemotive#320
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Sep 7, 2016
1 parent ec156fc commit 7f08c1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2364,8 +2364,9 @@ function get_tax_name( $tax ) {
$name = single_term_title( '', false );
}
// Apparently we're already ucwordsing this elsewhere, and doing it a second time messes it up... why aren't we just doing this at the end?
// if ( ( $tax == 'category' ) && ( !empty( $aioseop_options['aiosp_cap_cats'] ) ) )
// $name = $this->ucwords( $name );
if ( ( $tax == 'category' ) && ( !empty( $aioseop_options['aiosp_cap_cats'] ) ) ){
$name = $this->ucwords( $name );
}

return $this->internationalize( $name );
}
Expand Down

0 comments on commit 7f08c1e

Please sign in to comment.