[wp-trac] [WordPress Trac] #63367: Remove unnecessary type casting in wp-links-opml.php
WordPress Trac
noreply at wordpress.org
Tue Apr 29 07:00:05 UTC 2025
#63367: Remove unnecessary type casting in wp-links-opml.php
------------------------------+-----------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version:
Severity: normal | Keywords: has-patch
Focuses: coding-standards |
------------------------------+-----------------------------
While reviewing the `wp-links-opml.php` file, I noticed that the
`$link_cat` variable is being cast to `(string)`. However, since the
`absint` function already casts the value to `(int)`, the explicit type
casting to `(string)` seems unnecessary and can be removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63367>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list