Opened 19 years ago
Closed 18 years ago
#5481 closed defect (bug) (fixed)
Use is_numeric instead of ctype_digit in wp-admin/includes/image.php
| Reported by: | josephscott | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The use of ctype_digit() has brought in as part of r6309 in wp-admin/includes/image.php. This will sound odd, but I've run into PHP installs that don't have ctype_* functions available. Seems like the next best thing is to use is_numeric().
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
use of the WordPress function absint() would be even better than is_numeric().