Skip to content

Commit

Permalink
Zukit updated to version 1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-rudakov committed Jan 9, 2022
2 parents 3b64d86 + e9fb2d5 commit f9eb6ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions zukit/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 1.4.7 / 2022-01-09

* added `get_full_filepath` scripts helper

#### 1.4.6 / 2022-01-04

##### Core
Expand Down
2 changes: 1 addition & 1 deletion zukit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zukit",
"version": "1.4.6",
"version": "1.4.7",
"testedWP": "5.8.2",
"requiresPHP": ">=7.2.0",
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions zukit/traits/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public function get_filepath($is_style, $is_frontend, $file) {
return sprintf($is_style ? '/%2$s/%1$s.css' : '/%2$s/%1$s.min.js', $file, $dir);
}

public function get_full_filepath($file, $is_style = false, $is_frontend = false) {
$filepath = $this->get_filepath($is_style, $is_frontend, $file);
return $this->sprintf_dir($filepath);
}

public function get_version($filename = '', $refresh = false) {
if(is_null($filename)) return null; // if set to null, no version is added
return $refresh ? $this->filename_version($filename) : $this->version;
Expand Down
2 changes: 1 addition & 1 deletion zukit/zukit-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class zukit_Plugin extends zukit_SingletonScripts {

private static $zukit_version = '1.4.6'; // .' (modified)';
private static $zukit_version = '1.4.7'; // .' (modified)';

public $config;

Expand Down

0 comments on commit f9eb6ad

Please sign in to comment.