PluginProbe
WANotifier for Forms and Actions / 3.1.1
WANotifier for Forms and Actions v3.1.1
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | libraries/action-scheduler/classes/ActionScheduler_Compatibility.php +8 -2 2.7.93.1.1 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 ) {