File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -882,22 +882,6 @@ function( $time ) use ( $cache_time ) {
882
882
$ feed ->set_useragent ( apply_filters ( 'http_headers_useragent ' , $ set_server_agent ) );
883
883
}
884
884
885
- global $ feedzy_current_error_reporting ;
886
- $ feedzy_current_error_reporting = error_reporting ();
887
-
888
- // to avoid the Warning! Non-numeric value encountered. This can be removed once SimplePie in core is fixed.
889
- if ( version_compare ( phpversion (), '7.1 ' , '>= ' ) ) {
890
- error_reporting ( E_ALL & ~E_WARNING & ~E_DEPRECATED );
891
- // reset the error_reporting back to its original value.
892
- add_action (
893
- 'shutdown ' ,
894
- function () {
895
- global $ feedzy_current_error_reporting ;
896
- error_reporting ( $ feedzy_current_error_reporting );
897
- }
898
- );
899
- }
900
-
901
885
$ feed ->init ();
902
886
903
887
if ( ! $ feed ->get_type () ) {
Original file line number Diff line number Diff line change 38
38
<exclude name =" Generic.Strings.UnnecessaryStringConcat.Found" />
39
39
<exclude name =" WordPress.PHP.DevelopmentFunctions.error_log_print_r" />
40
40
<exclude name =" WordPress.WP.AlternativeFunctions" />
41
- <exclude name =" WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_ini_set" />
42
- <exclude name =" WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_error_reporting" />
43
- <exclude name =" WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_error_reporting" />
44
41
<exclude name =" WordPress.PHP.DevelopmentFunctions.error_log_error_log" />
45
42
</rule >
46
43
<config name =" testVersion" value =" 7.2-" />
You can’t perform that action at this time.
0 commit comments