Skip to content

Commit 70b5743

Browse files
author
gitlost
committed
Fix code formatting. [ci skip]
1 parent 667ad91 commit 70b5743

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,20 @@ Install in the standard way via the 'Plugins' menu in WordPress and then activat
5555
You can add normalization to anything that passes its content through a filter. The canonical way is to use the `unfc_extra_filters` filter which returns an array of filter names -
5656
for instance, in your theme's `functions.php` file, add:
5757

58-
`<?php
59-
function mytheme_unfc_extra_filters( $extra_filters ) {
60-
$extra_filters[] = 'myfilter';
61-
return $extra_filters;
62-
}
63-
add_filter( 'unfc_extra_filters', 'mytheme_unfc_extra_filters' );
64-
`
58+
function mytheme_unfc_extra_filters( $extra_filters ) {
59+
$extra_filters[] = 'myfilter';
60+
return $extra_filters;
61+
}
62+
add_filter( 'unfc_extra_filters', 'mytheme_unfc_extra_filters' );
6563

6664
Note that the `unfc_extra_filters` filter is only called in the administration backend. You can also add a filter directly, to be called in the frontend or backend, by referencing the
6765
global PHP variable `unfc_normalize`, but you should ensure that the `Normalizer` polyfill is loaded if you don't have the PHP `Intl` extension installed:
6866

69-
`<?php
70-
global $unfc_normalize;
71-
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
72-
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
73-
}
74-
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
75-
`
67+
global $unfc_normalize;
68+
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
69+
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
70+
}
71+
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
7672

7773
## Screenshots ##
7874

readme.txt

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,20 @@ Install in the standard way via the 'Plugins' menu in WordPress and then activat
5454
You can add normalization to anything that passes its content through a filter. The canonical way is to use the `unfc_extra_filters` filter which returns an array of filter names -
5555
for instance, in your theme's `functions.php` file, add:
5656

57-
`<?php
58-
function mytheme_unfc_extra_filters( $extra_filters ) {
59-
$extra_filters[] = 'myfilter';
60-
return $extra_filters;
61-
}
62-
add_filter( 'unfc_extra_filters', 'mytheme_unfc_extra_filters' );
63-
`
57+
function mytheme_unfc_extra_filters( $extra_filters ) {
58+
$extra_filters[] = 'myfilter';
59+
return $extra_filters;
60+
}
61+
add_filter( 'unfc_extra_filters', 'mytheme_unfc_extra_filters' );
6462

6563
Note that the `unfc_extra_filters` filter is only called in the administration backend. You can also add a filter directly, to be called in the frontend or backend, by referencing the
6664
global PHP variable `unfc_normalize`, but you should ensure that the `Normalizer` polyfill is loaded if you don't have the PHP `Intl` extension installed:
6765

68-
`<?php
69-
global $unfc_normalize;
70-
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
71-
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
72-
}
73-
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
74-
`
66+
global $unfc_normalize;
67+
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
68+
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
69+
}
70+
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
7571

7672
== Screenshots ==
7773

0 commit comments

Comments
 (0)