Changeset 56250
- Timestamp:
- 07/17/2023 08:02:11 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r56204 r56250 269 269 * point 1 above by aligning Imagick's timeout with PHP's timeout, assuming it is set. 270 270 * 271 * However seems it introduces more problems than it fixes, 272 * see https://core.trac.wordpress.org/ticket/58202. 273 * 271 274 * Note: 272 275 * - Imagick resource exhaustion does not issue catchable exceptions (yet). … … 276 279 * 277 280 * @since 6.2.0 281 * @since 6.3.0 This method was deprecated. 278 282 * 279 283 * @return int|null The new limit on success, null on failure. 280 284 */ 281 285 public static function set_imagick_time_limit() { 286 _deprecated_function( __METHOD__, '6.3.0' ); 287 282 288 if ( ! defined( 'Imagick::RESOURCETYPE_TIME' ) ) { 283 289 return null; … … 329 335 return $this->crop( $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h ); 330 336 } 331 332 self::set_imagick_time_limit();333 337 334 338 // Execute the resize. … … 598 602 } 599 603 600 self::set_imagick_time_limit();601 602 604 try { 603 605 $this->image->cropImage( $src_w, $src_h, $src_x, $src_y );
Note: See TracChangeset
for help on using the changeset viewer.