diff --git a/src/wp-admin/includes/class-pclzip.php b/src/wp-admin/includes/class-pclzip.php
index b1b39e2dfe..3f26dee2e4 100644
|
a
|
b
|
|
| 1170 | 1170 | // ----- Reset the error handler |
| 1171 | 1171 | $this->privErrorReset(); |
| 1172 | 1172 | |
| 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) |
| 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 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) |
| 1239 | 1239 | { |
| 1240 | 1240 | |
| 1241 | 1241 | // ----- Merge the archive |
diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index 281e896fa0..0d22ada14e 100644
|
a
|
b
|
function get_taxonomies_for_attachments( $output = 'names' ) { |
| 3748 | 3748 | * Determines whether the value is an acceptable type for GD image functions. |
| 3749 | 3749 | * |
| 3750 | 3750 | * In PHP 8.0, the GD extension uses GdImage objects for its data structures. |
| 3751 | | * This function checks if the passed value is either a resource of type `gd` |
| 3752 | | * or a GdImage object instance. Any other type will return false. |
| | 3751 | * This function checks if the passed value is either a GdImage object instance |
| | 3752 | * or a resource of type `gd`. Any other type will return false. |
| 3753 | 3753 | * |
| 3754 | 3754 | * @since 5.6.0 |
| 3755 | 3755 | * |
| … |
… |
function get_taxonomies_for_attachments( $output = 'names' ) { |
| 3758 | 3758 | * false otherwise. |
| 3759 | 3759 | */ |
| 3760 | 3760 | function is_gd_image( $image ) { |
| 3761 | | if ( is_resource( $image ) && 'gd' === get_resource_type( $image ) |
| 3762 | | || is_object( $image ) && $image instanceof GdImage |
| | 3761 | if ( $image instanceof GdImage |
| | 3762 | || is_resource( $image ) && 'gd' === get_resource_type( $image ) |
| 3763 | 3763 | ) { |
| 3764 | 3764 | return true; |
| 3765 | 3765 | } |