Ticket #58309: 58309.diff
| File 58309.diff, 1.3 KB (added by , 3 years ago) |
|---|
-
wp-admin/includes/class-pclzip.php
1170 1170 // ----- Reset the error handler 1171 1171 $this->privErrorReset(); 1172 1172 1173 // ----- Look if the $p_archive is a PclZip object1174 if ( is_object($p_archive) &&$p_archive instanceof pclzip)1173 // ----- Look if the $p_archive is an instantiated PclZip object 1174 if ($p_archive instanceof pclzip) 1175 1175 { 1176 1176 1177 1177 // ----- Duplicate the archive … … 1234 1234 return(0); 1235 1235 } 1236 1236 1237 // ----- Look if the $p_archive_to_add is a PclZip object1238 if ( is_object($p_archive_to_add) &&$p_archive_to_add instanceof pclzip)1237 // ----- Look if the $p_archive_to_add is an instantiated PclZip object 1238 if ($p_archive_to_add instanceof pclzip) 1239 1239 { 1240 1240 1241 1241 // ----- Merge the archive -
wp-includes/media.php
3759 3759 */ 3760 3760 function is_gd_image( $image ) { 3761 3761 if ( is_resource( $image ) && 'gd' === get_resource_type( $image ) 3762 || is_object( $image ) &&$image instanceof GdImage3762 || $image instanceof GdImage 3763 3763 ) { 3764 3764 return true; 3765 3765 }