[wp-trac] [WordPress Trac] #58943: Replace `is_a` calls in core with `instanceof`
WordPress Trac
noreply at wordpress.org
Thu Aug 3 12:08:45 UTC 2023
#58943: Replace `is_a` calls in core with `instanceof`
------------------------------+--------------------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch commit | Focuses: performance, coding-standards
------------------------------+--------------------------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"56352" 56352]:
{{{
#!CommitTicketReference repository="" revision="56352"
Coding Standards: Use `instanceof` keyword instead of the `is_a()`
function.
This is a micro-optimization that removes a few unnecessary function
calls.
Follow-up to [31188], [34369], [38986], [41159], [43211], [43230],
[44606], [45757].
Props ayeshrajans, jrf, rajinsharwar, costdev, mukesh27, SergeyBiryukov.
Fixes #58943.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58943#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list