Skip to content

Commit

Permalink
Dashboard: make widget title translatable (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve authored Feb 6, 2025
1 parent 26da579 commit 0aa5eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,7 @@ public function add_dashboard_widgets() {
if ( ! is_array( $widget ) ) {
continue;
}
$title = 'Latest Posts';
$title = __( 'Latest Posts', 'friends' );
if ( isset( $widget['format'] ) ) {
$title = get_post_format_string( sanitize_key( $widget['format'] ) );
}
Expand Down

0 comments on commit 0aa5eca

Please sign in to comment.