Skip to content

Commit

Permalink
v 3.3.0
Browse files Browse the repository at this point in the history
- Fix translation hook.
- Fix DB Init.
  • Loading branch information
Darklg committed Dec 27, 2024
1 parent 63f53af commit 3fadad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
Class Name: WPU Base Admin Datas
Description: A class to handle datas in WordPress admin
Version: 4.4.0
Version: 4.5.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 check_database() {
$sql_query .= " DEFAULT CHARSET=utf8;";

$table_fields = array();
foreach ($table_fields as $id => $field) {
foreach ($this->settings['table_fields'] as $id => $field) {
$field['public_name'] = '';
$table_fields[$id] = $field;
}
Expand Down Expand Up @@ -462,7 +462,7 @@ public function delete_lines($lines = array()) {
---------------------------------------------------------- */

public function export_array_to_csv($array, $name) {
_deprecated_function('export_array_to_csv', '4.4.0');
_deprecated_function('export_array_to_csv', '4.5.0');

if (isset($array[0])) {
header('Content-Type: application/csv');
Expand Down Expand Up @@ -496,7 +496,7 @@ public function admin_export() {
$this->export_datas();
}

/* Thanks to https://stackoverflow.com/a/554.4.04 */
/* Thanks to https://stackoverflow.com/a/55482704 */
public function export_datas() {
global $wpdb;

Expand Down
6 changes: 3 additions & 3 deletions wpunewsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://github.com/WordPressUtilities/wpunewsletter
Update URI: https://github.com/WordPressUtilities/wpunewsletter
Description: Allow subscriptions to a newsletter.
Version: 3.2.0
Version: 3.3.0
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpunewsletter
Expand Down Expand Up @@ -47,7 +47,7 @@ class WPUNewsletter {
public $plugin_dir;
public $plugin_id;
public $plugin_url;
public $plugin_version = '3.2.0';
public $plugin_version = '3.3.0';
public $settings_update;
public $table_name;
public $table_name_raw;
Expand Down Expand Up @@ -109,7 +109,7 @@ public function __construct() {
$this->db_version = get_option('wpunewsletter_db_version');

/* Hooks */
add_action('plugins_loaded', array(&$this,
add_action('init', array(&$this,
'load_translation'
));
add_action('plugins_loaded', array(&$this,
Expand Down

0 comments on commit 3fadad7

Please sign in to comment.