1 | <?php |
||
7 | class Assets { |
||
8 | /** |
||
9 | * Given a minified path, and a non-minified path, will return |
||
10 | * a minified or non-minified file URL based on whether SCRIPT_DEBUG is set and truthy. |
||
11 | * |
||
12 | * Both `$min_base` and `$non_min_base` are expected to be relative to the |
||
13 | * root Jetpack directory. |
||
14 | * |
||
15 | * @since 5.6.0 |
||
16 | * |
||
17 | * @param string $min_path |
||
18 | * @param string $non_min_path |
||
19 | * @return string The URL to the file |
||
20 | */ |
||
21 | public function get_file_url_for_environment( $min_path, $non_min_path ) { |
||
27 | |||
28 | /** |
||
29 | * Use only when we can't instantiate a client object with |
||
30 | * this as a constructor argument because we can't modify the call |
||
31 | * to the constructor. |
||
32 | * |
||
33 | * @return Assets |
||
34 | */ |
||
35 | public static function get_instance() { |
||
38 | } |
||
39 |