@@ -4,6 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | /** |
6 | 6 | * @deprecated since 0.21.1 use Upstatement/routes instead |
7 | + * @param Timber $timber |
|
7 | 8 | */ |
8 | 9 | public static function init( $timber ) { |
9 | 10 | // Install ourselves in Timber |
@@ -24,7 +25,7 @@ discard block |
||
24 | 25 | * @param mixed $query |
25 | 26 | * @param int $status_code |
26 | 27 | * @param bool $tparams |
27 | - * @return bool |
|
28 | + * @return boolean|null |
|
28 | 29 | * @deprecated since 0.21.1 use Upstatement/routes instead |
29 | 30 | */ |
30 | 31 | public static function load_view($template, $query = false, $status_code = 200, $tparams = false) { |
@@ -136,6 +136,9 @@ discard block |
||
136 | 136 | return $path; |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $fs |
|
141 | + */ |
|
139 | 142 | public static function file_system_to_url( $fs ) { |
140 | 143 | $relative_path = self::get_rel_path( $fs ); |
141 | 144 | $home = home_url( '/'.$relative_path ); |
@@ -210,6 +213,7 @@ discard block |
||
210 | 213 | /** |
211 | 214 | * This will evaluate wheter a URL is at an aboslute location (like http://example.org/whatever) |
212 | 215 | * |
216 | + * @param string $path |
|
213 | 217 | * @return boolean true if $path is an absolute url, false if relative. |
214 | 218 | */ |
215 | 219 | public static function is_absolute( $path ) { |
@@ -230,6 +234,9 @@ discard block |
||
230 | 234 | return $is_external; |
231 | 235 | } |
232 | 236 | |
237 | + /** |
|
238 | + * @param string $url |
|
239 | + */ |
|
233 | 240 | private static function is_internal_content($url) { |
234 | 241 | // using content_url() instead of site_url or home_url is IMPORTANT |
235 | 242 | // otherwise you run into errors with sites that: |
@@ -606,7 +606,7 @@ |
||
606 | 606 | * Is post class or class map. |
607 | 607 | * |
608 | 608 | * @param string|array $args |
609 | - * @return bool |
|
609 | + * @return boolean|null |
|
610 | 610 | * @deprecated since 0.20.0 |
611 | 611 | */ |
612 | 612 | public static function is_post_class_or_class_map( $args ) { |