1 | <?php |
||
6 | abstract class AbstractResolver |
||
7 | { |
||
8 | use WpBridgeTrait; |
||
9 | |||
10 | /** |
||
11 | * Folder path to wordpress, with trailing slash. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $wpDirectoryPath = ''; |
||
16 | |||
17 | /** |
||
18 | * Wordpress folder name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $wpFolderName = ''; |
||
23 | |||
24 | /** |
||
25 | * MultisiteDirectoryResolver. |
||
26 | * |
||
27 | * @param string $wpdir |
||
28 | */ |
||
29 | public function __construct($wpdir) |
||
34 | |||
35 | /** |
||
36 | * Set the right links in Adminbar. |
||
37 | * |
||
38 | * @param string $path |
||
39 | * @param string $scheme |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function fixNetworkAdminUrlFilter($path = '', $scheme = 'admin') |
||
65 | |||
66 | /** |
||
67 | * Fix double backslashes in app folder. |
||
68 | * |
||
69 | * @param string |
||
70 | */ |
||
71 | public function fixWpDoubleSlashFilter($urls) |
||
81 | |||
82 | /** |
||
83 | * Fixes the protocol in urls. Replaces leading double slashes // |
||
84 | * with the full protocol; https or http depending on context. |
||
85 | * |
||
86 | * @param string |
||
87 | * |
||
88 | * @return array |
||
89 | */ |
||
90 | public function fixWpProtocolFilter($urls) |
||
102 | |||
103 | /** |
||
104 | * Get the correct protocol. |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | protected function getSiteProtocol() |
||
112 | |||
113 | /** |
||
114 | * Init all filter. |
||
115 | */ |
||
116 | public function init() |
||
126 | |||
127 | /** |
||
128 | * Set wordpress folder name. |
||
129 | * |
||
130 | * @param string |
||
131 | */ |
||
132 | protected function setWpFolderName() |
||
138 | } |
||
139 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.