diff --git a/widget-for-co-authors.php b/widget-for-co-authors.php index c30d7ca..4f60610 100644 --- a/widget-for-co-authors.php +++ b/widget-for-co-authors.php @@ -11,6 +11,13 @@ License: GPLv2 or later /* ------------------------------------------------------ */ # --------------------------------------------------------- + +// Load translations +add_action('plugins_loaded', 'wan_load_textdomain'); +function wan_load_textdomain() { + load_plugin_textdomain( 'co-authors-widget', false, dirname( plugin_basename(__FILE__) ) . '/languages/' ); +} + # Shortcode to show authors add_shortcode('blog-post-coauthors', 'blog_post_coauthors'); function blog_post_coauthors() { @@ -131,12 +138,6 @@ $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_in return $instance; } } - -// Load translations -add_action('plugins_loaded', 'wan_load_textdomain'); -function wan_load_textdomain() { - load_plugin_textdomain( 'co-authors-widget', false, dirname( plugin_basename(__FILE__) ) . '/languages/' ); -} /* ------------------------------------------------------ */ ?>