Skip to content

Commit

Permalink
v 0.33.1
Browse files Browse the repository at this point in the history
- Update dependencies.
- Fix translation loading.
  • Loading branch information
Darklg committed Nov 23, 2024
1 parent 4ab21ae commit 3aa1305
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install modules
run: npm install -g eslint@^8
- name: Run ESLint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: PHP Lint
uses: michaelw90/[email protected]
19 changes: 16 additions & 3 deletions inc/WPUBaseUpdate/WPUBaseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
Class Name: WPU Base Update
Description: A class to handle plugin update from github
Version: 0.5.0
Version: 0.6.0
Class URI: https://github.com/WordPressUtilities/wpubaseplugin
Author: Darklg
Author URI: https://darklg.me/
Expand Down Expand Up @@ -176,7 +176,7 @@ public function plugins_api($res, $action, $args) {
return false;
}

if ('github-' . $this->github_project !== $args->slug) {
if ('github-' . $this->github_project !== $args->slug && $this->github_project !== $args->slug) {
return $res;
}

Expand All @@ -185,7 +185,20 @@ public function plugins_api($res, $action, $args) {
return (object) $plugin_info;
}

return false;
$plugin_details = array(
'name' => $this->github_project,
'slug' => $this->github_project
);

$parent_plugin = __DIR__ . '/../../' . $this->github_project . '.php';
if (file_exists($parent_plugin)) {
$plugin_name = get_plugin_data($parent_plugin);
if (isset($plugin_name['Name'])) {
$plugin_details['name'] = $plugin_name['Name'];
}
}

return (object) $plugin_details;

}

Expand Down
6 changes: 3 additions & 3 deletions wpupostmetas.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://github.com/WordPressUtilities/wpupostmetas
Update URI: https://github.com/WordPressUtilities/wpupostmetas
Description: Simple admin for post metas
Version: 0.33.0
Version: 0.33.1
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpupostmetas
Expand All @@ -23,7 +23,7 @@ class WPUPostMetas {
public $qtranslatex;
public $qtranslate;

public $version = '0.33.0';
public $version = '0.33.1';
public $boxes = array();
public $fields = array();
public $settings_update;
Expand All @@ -42,7 +42,7 @@ public function __construct() {
if (!is_admin()) {
return;
}
add_action('plugins_loaded', array(&$this,
add_action('after_setup_theme', array(&$this,
'load_plugin_textdomain'
));
add_action('add_meta_boxes', array(
Expand Down

0 comments on commit 3aa1305

Please sign in to comment.