[wp-trac] [WordPress Trac] #58943: Replace `is_a` calls in core with `instanceof`

WordPress Trac noreply at wordpress.org
Mon Jul 31 07:32:21 UTC 2023


#58943: Replace `is_a` calls in core with `instanceof`
-------------------------------------------+-----------------------------
 Reporter:  ayeshrajans                    |      Owner:  (none)
     Type:  enhancement                    |     Status:  new
 Priority:  normal                         |  Milestone:  Awaiting Review
Component:  General                        |    Version:  trunk
 Severity:  trivial                        |   Keywords:  has-patch
  Focuses:  performance, coding-standards  |
-------------------------------------------+-----------------------------
 Replaces all `is_a` function calls with `instanceof` keyword, which in
 theory should be faster, and provides more code clarity. The replacements
 use extra braces to enhance the clarity although they are technically not
 necessary.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58943>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list