ini_set without init_get check and disabled php functions
-
WP 5.3
My problem is that in some production environments ini_set is disabled. Of course on the same environments the display_errors is always 0.
However /wp-includes/load.php at line 352 runs
ini_set( 'display_errors', 0 );and this results in a flooded error log file which in production makes it difficult to spot real problems.How about a check with
ini_get( 'display_errors')first before calling ini_set for no reason?Otherwise how (and where) to do something like
add_filter('enable_wp_debug_mode_checks', '__return_false');and get out of thewp_debug_mode()before going to line 352.
The topic ‘ini_set without init_get check and disabled php functions’ is closed to new replies.