Skip to content

Commit d97fba4

Browse files
committed
Alphabetical ordering for blacklisted_options
1 parent 7235326 commit d97fba4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

WordPress/Sniffs/PHP/IniSetSniff.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ class IniSetSniff extends AbstractFunctionParameterSniff {
7878
* );
7979
*/
8080
protected $blacklisted_options = array(
81-
'max_execution_time' => array(
82-
'message' => 'Use `set_time_limit()` instead.',
83-
),
84-
'short_open_tag' => array(
85-
'invalid_values' => array( 'false', '0', 'Off' ),
86-
'message' => 'Turning off short_open_tag is prohibited as it can break other plugins.',
87-
),
8881
'bcmath.scale' => array(
8982
'message' => 'Use `bcscale()` instead.',
9083
),
@@ -115,9 +108,16 @@ class IniSetSniff extends AbstractFunctionParameterSniff {
115108
'log_errors' => array(
116109
'message' => 'Use `WP_DEBUG_LOG` instead.',
117110
),
111+
'max_execution_time' => array(
112+
'message' => 'Use `set_time_limit()` instead.',
113+
),
118114
'memory_limit' => array(
119115
'message' => 'Use `wp_raise_memory_limit()` or hook into the filters in that function.',
120116
),
117+
'short_open_tag' => array(
118+
'invalid_values' => array( 'false', '0', 'Off' ),
119+
'message' => 'Turning off short_open_tag is prohibited as it can break other plugins.',
120+
),
121121
);
122122

123123
/**

0 commit comments

Comments
 (0)