Skip to content

Conversation

@krishneup
Copy link

@krishneup krishneup commented Jan 28, 2024

Error:

number_format(): Argument 1 ($num) must be of type float, string given in /var/www/src/wp-admin/includes/class-wp-debug-data.php

Few things:

  1. ini_get returns string data type .
  2. number_format expects first argument to be float number, but here string is provided.

Trac ticket: https://core.trac.wordpress.org/ticket/60364


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@SergeyBiryukov
Copy link
Member

Thanks for the PR! Merged in r58847.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants