Skip to content

Commit

Permalink
fix capitalization for "WordPress"
Browse files Browse the repository at this point in the history
  • Loading branch information
tw2113 committed Jun 5, 2024
1 parent 59d11ef commit b030f11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions glossary/glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function ( $a, $b ) {

// Replace hyphens with spaces and capitalize every word
$formatted_term_name = ucwords( str_replace( '-', ' ', $term_name ) );
if ( 'Wordpress' === $formatted_term_name ) {
$formatted_term_name = 'WordPress';
}

// Output a hidden div with the parsed HTML content
echo '<a class="term-link" data-term-name="' . esc_attr( $term_name ) . '">' . esc_html( $formatted_term_name ) . '</a>';
Expand Down

0 comments on commit b030f11

Please sign in to comment.