Commit 6c97291 1 parent 37d1b5c commit 6c97291 Copy full SHA for 6c97291
File tree 1 file changed +4
-19
lines changed
packages/patterns/src/components
1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -9,33 +9,18 @@ import { store as coreStore } from '@wordpress/core-data';
9
9
import { useDebounce } from '@wordpress/compose' ;
10
10
import { decodeEntities } from '@wordpress/html-entities' ;
11
11
12
- export const unescapeString = ( arg ) => {
12
+ const unescapeString = ( arg ) => {
13
13
return decodeEntities ( arg ) ;
14
14
} ;
15
- /**
16
- * Returns a term object with name unescaped.
17
- *
18
- * @param {Object } term The term object to unescape.
19
- *
20
- * @return {Object } Term object with name property unescaped.
21
- */
22
- export const unescapeTerm = ( term ) => {
15
+
16
+ const unescapeTerm = ( term ) => {
23
17
return {
24
18
...term ,
25
19
name : unescapeString ( term . name ) ,
26
20
} ;
27
21
} ;
28
- /**
29
- * Shared reference to an empty array for cases where it is important to avoid
30
- * returning a new array reference on every invocation.
31
- *
32
- * @type {Array<any> }
33
- */
34
- const EMPTY_ARRAY = [ ] ;
35
22
36
- /**
37
- * Module constants
38
- */
23
+ const EMPTY_ARRAY = [ ] ;
39
24
const MAX_TERMS_SUGGESTIONS = 20 ;
40
25
const DEFAULT_QUERY = {
41
26
per_page : MAX_TERMS_SUGGESTIONS ,
You can’t perform that action at this time.
0 commit comments