Skip to content

Commit 13babd7

Browse files
committed
Made delimiters in examples consistent.
1 parent bd276bc commit 13babd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ Note that the direction of slashes needs to match operating system or write your
4141
global $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 );

0 commit comments

Comments
 (0)