← All changes
|
modules/editor-one/classes/menu-data-provider.php
+1
-5
4.1.3
→
3.35.0-dev4
View file →
| @@ -534,13 +534,9 @@ | ||
| 534 | 534 | } ); |
| 535 | 535 | } |
| 536 | 536 | |
| 537 | 537 | private function title_case( string $text ): string { |
| 538 | - if ( function_exists( 'mb_convert_case' ) ) { | |
| 539 | - return mb_convert_case( $text, MB_CASE_TITLE, 'UTF-8' ); | |
| 540 | - } | |
| 541 | - | |
| 542 | - return ucwords( strtolower( $text ) ); | |
| 538 | + return mb_convert_case( $text, MB_CASE_TITLE, 'UTF-8' ); | |
| 543 | 539 | } |
| 544 | 540 | |
| 545 | 541 | private function invalidate_cache(): void { |
| 546 | 542 | $this->cached_level3_sidebar_data = null; |