From 588cc315699f9df40005b20b65829530705b91db Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 12 Dec 2024 16:29:51 +0200 Subject: [PATCH] chore: remove outdated textdomain loading --- includes/feedzy-rss-feeds-i18n.php | 49 ------------------------------ includes/feedzy-rss-feeds.php | 20 ------------ 2 files changed, 69 deletions(-) delete mode 100644 includes/feedzy-rss-feeds-i18n.php diff --git a/includes/feedzy-rss-feeds-i18n.php b/includes/feedzy-rss-feeds-i18n.php deleted file mode 100644 index 5d574b6b..00000000 --- a/includes/feedzy-rss-feeds-i18n.php +++ /dev/null @@ -1,49 +0,0 @@ - - */ - -// @codingStandardsIgnoreStart -class Feedzy_Rss_Feeds_i18n { - // @codingStandardsIgnoreEnd - - /** - * Load the plugin text domain for translation. - * - * @since 3.0.0 - * @access public - */ - public function load_plugin_textdomain() { - - load_plugin_textdomain( - 'feedzy-rss-feeds', - false, - dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' - ); - - } - - - -} diff --git a/includes/feedzy-rss-feeds.php b/includes/feedzy-rss-feeds.php index d8f176c3..de94547a 100644 --- a/includes/feedzy-rss-feeds.php +++ b/includes/feedzy-rss-feeds.php @@ -106,7 +106,6 @@ public function init() { self::$plugin_name = 'feedzy-rss-feeds'; self::$version = '4.4.16'; self::$instance->load_dependencies(); - self::$instance->set_locale(); self::$instance->define_admin_hooks(); } @@ -158,25 +157,6 @@ public static function get_version() { return self::$version; } - /** - * Define the locale for this plugin for internationalization. - * - * Uses the Feedzy_Rss_Feeds_i18n class in order to set the domain and to register the hook - * with WordPress. - * - * @since 3.0.0 - * @access private - */ - private function set_locale() { - /** - * The class responsible for defining internationalization functionality - * of the plugin. - */ - $plugin_i18n = new Feedzy_Rss_Feeds_i18n(); - self::$instance->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); - - } - /** * Register all of the hooks related to the admin area functionality * of the plugin.