Skip to content

Commit

Permalink
fix: convert spam_count to int before displaying, refs #500
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbrinkmann committed Jun 2, 2023
1 parent d45bbcb commit 06cb5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/DashboardWidgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function add_dashboard_count( $items = array() ) {
* @since 2.4
*/
private static function get_spam_count() {
$count = Settings::get_option( 'spam_count', '' );
$count = intval( Settings::get_option( 'spam_count' ) );

return ( get_locale() === 'de_DE' ? number_format( $count, 0, '', '.' ) : number_format_i18n( $count ) );
}
Expand Down

0 comments on commit 06cb5c0

Please sign in to comment.