Skip to content

Commit

Permalink
remove function loading the translations from the plugin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndkauboy committed May 14, 2022
1 parent df750e0 commit 4a20e3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Requires at least: 5.0
Tested up to: 5.9
Requires PHP: 5.6
Stable tag: 1.0.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt

Expand All @@ -24,5 +23,8 @@ In order to be able to use the plugin, you have to get API credentials from Mail

## Changelog

### 1.0.1
* Remove function loading the translations from the plugin folder

### 1.0.0
* First stable version
16 changes: 2 additions & 14 deletions campaign-archive-block-for-mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
* Plugin Name: Campaign Archive Block for Mailchimp
* Plugin URI: https://github.com/2ndkauboy/campaign-archive-block-for-mailchimp
* Description: Adds a block to show an archive for Mailchimp Campaigns.
* Version: 1.0.0
* Version: 1.0.1
* Author: Bernhard Kau
* Author URI: https://kau-boys.de
* Text Domain: campaign-archive-block-for-mailchimp
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
*/

define( 'CABFM_VERSION', '1.0.0' );
define( 'CABFM_VERSION', '1.0.1' );
define( 'CABFM_FILE', __FILE__ );
define( 'CABFM_PATH', plugin_dir_path( CABFM_FILE ) );
define( 'CABFM_URL', plugin_dir_url( CABFM_FILE ) );
Expand All @@ -30,9 +30,6 @@
* Pre init function to check the plugins compatibility.
*/
function cabfm_pre_init() {
// Load the translation, as they might be needed in pre_init.
add_action( 'plugins_loaded', 'cabfm_load_textdomain' );

// Check, if the min. required PHP version is available and if not, show an admin notice.
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
add_action( 'admin_notices', 'cabfm_min_php_version_error' );
Expand Down Expand Up @@ -65,15 +62,6 @@ function cabfm_pre_init() {
require_once CABFM_PATH . 'lib/load.php';
}

/**
* Load plugin textdomain.
*
* @since 1.0.0
*/
function cabfm_load_textdomain() {
load_plugin_textdomain( 'campaign-archive-block-for-mailchimp', false, basename( dirname( __FILE__ ) ) . '/languages' );
}

/**
* Show a admin notice error message, if the PHP version is too low.
*/
Expand Down

0 comments on commit 4a20e3d

Please sign in to comment.