Make WordPress Core

Ticket #58309: 58309.diff

File 58309.diff, 1.3 KB (added by Presskopp, 3 years ago)
  • wp-admin/includes/class-pclzip.php

     
    11701170    // ----- Reset the error handler
    11711171    $this->privErrorReset();
    11721172
    1173     // ----- Look if the $p_archive is a PclZip object
    1174     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)
    11751175    {
    11761176
    11771177      // ----- Duplicate the archive
     
    12341234      return(0);
    12351235    }
    12361236
    1237     // ----- Look if the $p_archive_to_add is a PclZip object
    1238     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)
    12391239    {
    12401240
    12411241      // ----- Merge the archive
  • wp-includes/media.php

     
    37593759 */
    37603760function is_gd_image( $image ) {
    37613761        if ( is_resource( $image ) && 'gd' === get_resource_type( $image )
    3762                 || is_object( $image ) && $image instanceof GdImage
     3762                || $image instanceof GdImage
    37633763        ) {
    37643764                return true;
    37653765        }