Skip to content

Commit

Permalink
Merge pull request #245 from WordPress/fix-menu-casing
Browse files Browse the repository at this point in the history
fix manage theme font menu casing
  • Loading branch information
madhusudhand authored Feb 28, 2023
2 parents 17e812b + 0df1e0e commit 6d2ada1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/class-manage-fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ function create_admin_menu() {
return;
}

$manage_fonts_page_title=_x('Manage theme fonts', 'UI String', 'create-block-theme');
$manage_fonts_menu_title=_x('Manage theme fonts', 'UI String', 'create-block-theme');
$manage_fonts_page_title = _x('Manage Theme Fonts', 'UI String', 'create-block-theme');
$manage_fonts_menu_title = $manage_fonts_page_title;
add_theme_page( $manage_fonts_page_title, $manage_fonts_menu_title, 'edit_theme_options', 'manage-fonts', [ 'Fonts_Page', 'manage_fonts_admin_page' ] );

$google_fonts_page_title=_x('Embed Google font in the active theme', 'UI String', 'create-block-theme');
$google_fonts_menu_title=_x('Embed Google font in the active theme', 'UI String', 'create-block-theme');
$google_fonts_page_title = _x('Embed Google font in the active theme', 'UI String', 'create-block-theme');
$google_fonts_menu_title = $google_fonts_page_title;
add_submenu_page(null, $google_fonts_page_title, $google_fonts_menu_title, 'edit_theme_options', 'add-google-font-to-theme-json', [ 'Google_Fonts', 'google_fonts_admin_page' ] );

$local_fonts_page_title=_x('Embed local font in the active theme', 'UI String', 'create-block-theme');
$local_fonts_menu_title=_x('Embed local font in the active theme', 'UI String', 'create-block-theme');
$local_fonts_page_title = _x('Embed local font in the active theme', 'UI String', 'create-block-theme');
$local_fonts_menu_title = $local_fonts_page_title;
add_submenu_page(null, $local_fonts_page_title, $local_fonts_menu_title, 'edit_theme_options', 'add-local-font-to-theme-json', [ 'Local_Fonts', 'local_fonts_admin_page' ] );
}

Expand Down

0 comments on commit 6d2ada1

Please sign in to comment.