From 0a161292ef573ae3379a1afe72b3e011e609fcca Mon Sep 17 00:00:00 2001 From: mjassen Date: Thu, 26 Jan 2017 15:07:52 -0500 Subject: [PATCH] update the plugin to fix localization-not-working This one line change should update the plugin to make the localization work once again. The symptom was found during this .org forum support conversation: https://wordpress.org/support/topic/language-translation-26 --- simple-post-expiration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-post-expiration.php b/simple-post-expiration.php index 8c71778..e2eb5fe 100644 --- a/simple-post-expiration.php +++ b/simple-post-expiration.php @@ -45,7 +45,7 @@ function pw_spe_text_domain() { // Load the default language files - load_plugin_textdomain( 'pw-spe' ); + load_plugin_textdomain('pw-spe', false, plugin_basename(dirname(__FILE__)). '/languages'); } add_action( 'init', 'pw_spe_text_domain' ); @@ -100,4 +100,4 @@ function pw_spe_filter_title( $title = '', $post_id = 0 ) { return $title; } -add_filter( 'the_title', 'pw_spe_filter_title', 100, 2 ); \ No newline at end of file +add_filter( 'the_title', 'pw_spe_filter_title', 100, 2 );