PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/classes/ActionScheduler_Compatibility.php +8 -2 1.5.4 → trunk View file →
@@ -48,9 +48,9 @@
48 48 if ( function_exists( 'wp_raise_memory_limit' ) ) {
49 49 return wp_raise_memory_limit( 'admin' );
50 50 }
51 51
52 - $current_limit = @ini_get( 'memory_limit' );
52 + $current_limit = @ini_get( 'memory_limit' ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
53 53 $current_limit_int = self::convert_hr_to_bytes( $current_limit );
54 54
55 55 if ( -1 === $current_limit_int ) {
56 56 return false;
@@ -60,8 +60,11 @@
60 60 $wp_max_limit_int = self::convert_hr_to_bytes( $wp_max_limit );
61 61 $filtered_limit = apply_filters( 'admin_memory_limit', $wp_max_limit );
62 62 $filtered_limit_int = self::convert_hr_to_bytes( $filtered_limit );
63 63
64 + // phpcs:disable WordPress.PHP.IniSet.memory_limit_Blacklisted
65 + // phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged
66 +
64 67 if ( -1 === $filtered_limit_int || ( $filtered_limit_int > $wp_max_limit_int && $filtered_limit_int > $current_limit_int ) ) {
65 68 if ( false !== @ini_set( 'memory_limit', $filtered_limit ) ) {
66 69 return $filtered_limit;
67 70 } else {
@@ -73,8 +76,11 @@
73 76 } else {
74 77 return false;
75 78 }
76 79 }
80 +
81 + // phpcs:enable
82 +
77 83 return false;
78 84 }
79 85
80 86 /**
@@ -84,9 +90,9 @@
84 90 *
85 91 * @param int $limit The time limit in seconds.
86 92 */
87 93 public static function raise_time_limit( $limit = 0 ) {
88 - $limit = (int) $limit;
94 + $limit = (int) $limit;
89 95 $max_execution_time = (int) ini_get( 'max_execution_time' );
90 96
91 97 // If the max execution time is already set to zero (unlimited), there is no reason to make a further change.
92 98 if ( 0 === $max_execution_time ) {