@@ -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 ) { |
@@ -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 ) { |