| 1 | <?php |
||
| 6 | class Assets { |
||
| 7 | // static-only class |
||
| 8 | private function __construct() {} |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Given a minified path, and a non-minified path, will return |
||
| 12 | * a minified or non-minified file URL based on whether SCRIPT_DEBUG is set and truthy. |
||
| 13 | * |
||
| 14 | * Both `$min_base` and `$non_min_base` are expected to be relative to the |
||
| 15 | * root Jetpack directory. |
||
| 16 | * |
||
| 17 | * @since 5.6.0 |
||
| 18 | * |
||
| 19 | * @param string $min_path |
||
| 20 | * @param string $non_min_path |
||
| 21 | * @return string The URL to the file |
||
| 22 | */ |
||
| 23 | public static function get_file_url_for_environment( $min_path, $non_min_path ) { |
||
| 29 | } |
||
| 30 |