1 | <?php |
||
7 | class CleanUpModule extends AbstractThemeModule |
||
8 | { |
||
9 | use WpBridgeTrait; |
||
10 | |||
11 | /** |
||
12 | * The default WordPress head is a mess. Let's clean it up. |
||
13 | */ |
||
14 | public function wpHeadCleanup() |
||
27 | |||
28 | public function removeRssVersion() |
||
32 | |||
33 | public function removeWpVerCssJs($src) |
||
41 | |||
42 | /** |
||
43 | * Clean the output of attributes of images in editor. |
||
44 | * Courtesy of SitePoint. http://www.sitepoint.com/wordpress-change-img-tag-html/ |
||
45 | * |
||
46 | * @param string $class |
||
47 | * @param string $id |
||
48 | * @param string $align |
||
49 | * @param string $size |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function imageTagClassClean($class, $id, $align, $size) |
||
57 | |||
58 | /** |
||
59 | * Remove width and height in editor, for a better responsive world. |
||
60 | * |
||
61 | * @param string $html |
||
62 | * @param string $id |
||
63 | * @param string $alt |
||
64 | * @param string $title |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function imageEditorRemoveHightAndWidth($html, $id, $alt, $title) |
||
81 | |||
82 | /** |
||
83 | * Remove image attributes |
||
84 | * |
||
85 | * @param string $html |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function removeImageAttributes($html) |
||
95 | |||
96 | public function shortcodeParagraphFix($content) |
||
107 | |||
108 | 1 | protected function getActionMap() |
|
120 | |||
121 | /** |
||
122 | * Override in concrete subclass. |
||
123 | * |
||
124 | * @return array |
||
125 | */ |
||
126 | 1 | protected function getFilterMap() |
|
162 | } |
||
163 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.