Changeset 49018
- Timestamp:
- 09/20/2020 02:13:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r49015 r49018 158 158 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 159 159 160 foreach ( $classes as $ class ) {160 foreach ( $classes as $key => $class ) { 161 161 if ( ! call_user_func( array( $class, 'test' ) ) ) { 162 162 // If the image editor isn't available, skip it. 163 unset( $classes[ $ class] );163 unset( $classes[ $key ] ); 164 164 } 165 165 } … … 217 217 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 218 218 219 foreach ( $classes as $ class ) {219 foreach ( $classes as $key => $class ) { 220 220 if ( ! call_user_func( array( $class, 'test' ) ) ) { 221 221 // If the image editor isn't available, skip it. 222 unset( $classes[ $ class] );222 unset( $classes[ $key ] ); 223 223 } 224 224 } … … 262 262 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 263 263 264 foreach ( $classes as $ class ) {264 foreach ( $classes as $key => $class ) { 265 265 if ( ! call_user_func( array( $class, 'test' ) ) ) { 266 266 // If the image editor isn't available, skip it. 267 unset( $classes[ $ class] );267 unset( $classes[ $key ] ); 268 268 } 269 269 } … … 328 328 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 329 329 330 foreach ( $classes as $ class ) {330 foreach ( $classes as $key => $class ) { 331 331 if ( ! call_user_func( array( $class, 'test' ) ) ) { 332 332 // If the image editor isn't available, skip it. 333 unset( $classes[ $ class] );333 unset( $classes[ $key ] ); 334 334 } 335 335 }
Note: See TracChangeset
for help on using the changeset viewer.