[wp-trac] [WordPress Trac] #58309: Save a few processing cycles by removing redundant is_object

WordPress Trac noreply at wordpress.org
Sun May 14 15:20:11 UTC 2023


#58309: Save a few processing cycles by removing redundant is_object
-------------------------+------------------------------
 Reporter:  Presskopp    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------

Comment (by Presskopp):

 Oh, seems like we also do patches for pclzip. In this case, let's speak
 about

 \includes\class-pclzip.php, ~L. 1174
 {{{if (is_object($p_archive) && $p_archive instanceof pclzip)}}}

 \includes\class-pclzip.php, ~L.1238
 {{{if (is_object($p_archive_to_add) && $p_archive_to_add instanceof
 pclzip)}}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58309#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list