Skip to content

Commit aeb0326

Browse files
committed
Add max_input_vars info !
1 parent 76ccd1f commit aeb0326

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

phpwpinfo.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,14 @@ public function test_php_config() {
316316
$status = (intval( $value ) >= (8388608 * 32)) ? 'success' : 'warning'; // 256mb
317317
$this->html_table_row( 'memory_limit', '64M', '256M', $value, $status );
318318
}
319+
320+
$value = ini_get( 'max_input_vars' );
321+
if ( intval( $value ) < 1000 ) {
322+
$this->html_table_row( 'max_input_vars', '1000', '5000', $value, 'error' );
323+
} else {
324+
$status = (intval( $value ) >= 5000) ? 'success' : 'warning';
325+
$this->html_table_row( 'max_input_vars', '1000', '5000', $value, $status );
326+
}
319327

320328
$value = ini_get( 'file_uploads' );
321329
if ( strtolower( $value ) == 'on' || $value == '1' ) {

0 commit comments

Comments
 (0)