[wp-trac] [WordPress Trac] #63445: Replace value casting with ! empty() check for positive value validation
WordPress Trac
noreply at wordpress.org
Wed May 14 13:49:20 UTC 2025
#63445: Replace value casting with ! empty() check for positive value validation
-----------------------------------------+-------------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Comments | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch changes-requested | Focuses: coding-standards
-----------------------------------------+-------------------------------
Comment (by dilipbheda):
> @dilipbheda, out of curiosity, what were you looking when you got to
this idea to try to fix the code?
@SirLouen While reviewing the code, I noticed unnecessary casting in this
condition, nothing else.
Here https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
admin/includes/ajax-actions.php#L1410
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63445#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list