From 5ecaca064b4d5821f74f60b2a205e7bdfce90fdd Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 5 May 2024 22:08:51 +0200 Subject: [PATCH] v 0.7.1 - Fix actions. --- .eslintrc.json | 1 + .github/workflows/js.yml | 2 +- .github/workflows/php.yml | 4 ++-- inc/WPUBaseFileCache/WPUBaseFileCache.php | 4 +++- wpu_override_gettext.php | 4 ++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 2558c5a..888bed5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,6 +11,7 @@ "no-prototype-builtins": 0 }, "globals": { + "wpu_override_gettext_options": true, "wp": true, "jQuery": true } diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 8ef2981..301b432 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -12,6 +12,6 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install modules - run: npm install -g eslint + run: npm install -g eslint@^8 - name: Run ESLint run: eslint assets/ --ext .js diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1901d23..c55b4e3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,9 +2,9 @@ name: PHP Lint on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: phplint: diff --git a/inc/WPUBaseFileCache/WPUBaseFileCache.php b/inc/WPUBaseFileCache/WPUBaseFileCache.php index d829458..90ab7b3 100644 --- a/inc/WPUBaseFileCache/WPUBaseFileCache.php +++ b/inc/WPUBaseFileCache/WPUBaseFileCache.php @@ -66,7 +66,9 @@ public function set_cache($cache_id, $content = '') { return true; } - /* Fix content creation */ + /** + * Writes content to a file and sets the file permissions. + */ public function file_put_contents($file, $content) { file_put_contents($file, $content); chmod($file, 0664); diff --git a/wpu_override_gettext.php b/wpu_override_gettext.php index 5e7217f..4b65e2e 100644 --- a/wpu_override_gettext.php +++ b/wpu_override_gettext.php @@ -5,7 +5,7 @@ Plugin URI: https://github.com/WordPressUtilities/wpu_override_gettext Update URI: https://github.com/WordPressUtilities/wpu_override_gettext Description: Override gettext strings -Version: 0.7.0 +Version: 0.7.1 Author: darklg Author URI: https://darklg.me/ Text Domain: wpu_override_gettext @@ -22,7 +22,7 @@ class WPUOverrideGettext { public $settings_update; public $plugin_description; public $adminpages; - private $plugin_version = '0.7.0'; + private $plugin_version = '0.7.1'; private $plugin_settings = array( 'id' => 'wpu_override_gettext', 'name' => 'WPU Override gettext'