Changeset 55757
- Timestamp:
- 05/15/2023 10:26:54 AM (20 months ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-pclzip.php
r51686 r55757 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 … … 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 -
trunk/src/wp-includes/media.php
r55703 r55757 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 … … 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 GdImage3761 if ( $image instanceof GdImage 3762 || is_resource( $image ) && 'gd' === get_resource_type( $image ) 3763 3763 ) { 3764 3764 return true;
Note: See TracChangeset
for help on using the changeset viewer.