-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprettify.php
117 lines (100 loc) · 2.73 KB
/
prettify.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
return [
/*
|--------------------------------------------------------------------------
| Clean Up
|--------------------------------------------------------------------------
|
| Enabling this option will remove unnecessary <link>'s, inline CSS and JS
| from WP emoji support, inline CSS used by the Recent Comments widget,
| inline CSS used by posts with galleries, and self-closing tags.
|
*/
'clean-up' => [
/**
* Enable clean up.
*/
'enabled' => true,
/**
* Obscure and suppress WordPress-related information.
*/
'obscurity' => true,
/**
* Clean up HTML5 markup.
*/
'clean-html5-markup' => true,
/**
* Disable WordPress emojis.
*/
'disable-emojis' => true,
/**
* Disable Gutenberg block library CSS.
*/
'disable-gutenberg-block-css' => true,
/**
* Disable extra RSS feeds.
*/
'disable-extra-rss' => true,
/**
* Disable recent comments CSS.
*/
'disable-recent-comments-css' => true,
/**
* Disable gallery CSS.
*/
'disable-gallery-css' => true,
],
/*
|--------------------------------------------------------------------------
| Nice Search
|--------------------------------------------------------------------------
|
| Enabling this option will redirect search results from /?s=query to
| /search/query/ and convert `%20` to `+`.
|
*/
'nice-search' => [
/**
* Enable nice search.
*/
'enabled' => true,
],
/*
|--------------------------------------------------------------------------
| Relative URLs
|--------------------------------------------------------------------------
|
| Enabling this option will convert absolute URLs to relative URLs within
| the specified hooks.
|
*/
'relative-urls' => [
/**
* Enable relative URLs.
*/
'enabled' => false,
/**
* The hooks to filter.
*/
'hooks' => [
'bloginfo_url',
'the_permalink',
'wp_list_pages',
'wp_list_categories',
'wp_get_attachment_url',
'the_content_more_link',
'the_tags',
'get_pagenum_link',
'get_comment_link',
'month_link',
'day_link',
'year_link',
'term_link',
'the_author_posts_link',
'script_loader_src',
'style_loader_src',
'theme_file_uri',
'parent_theme_file_uri',
],
],
];