File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ Note that the direction of slashes needs to match operating system or write your
4141global $wps;
4242
4343// Silence notices and warnings for any path.
44- $wps['run']->silenceErrorsInPaths( '|.*| ', E_NOTICE | E_WARNING );
44+ $wps['run']->silenceErrorsInPaths( '~.*~ ', E_NOTICE | E_WARNING );
4545
4646// Silence for specific directory.
47- $wps['run']->silenceErrorsInPaths( '| /wp-admin/| ', E_NOTICE | E_WARNING );
47+ $wps['run']->silenceErrorsInPaths( '~ /wp-admin/~ ', E_NOTICE | E_WARNING );
4848
4949// Silence _except_ specific directory.
50- $wps['run']->silenceErrorsInPaths( '| ^((?!/my-plugin/).)*$| ', E_NOTICE | E_WARNING );
50+ $wps['run']->silenceErrorsInPaths( '~ ^((?!/my-plugin/).)*$~ ', E_NOTICE | E_WARNING );
5151
5252// Silence for plugins _except_ specific plugin.
5353$wps['run']->silenceErrorsInPaths( '~/wp-content/plugins/(?!my-plugin)~', E_NOTICE | E_WARNING );
You can’t perform that action at this time.
0 commit comments