Update widget-for-co-authors.php

This commit is contained in:
ulaulaman 2018-01-27 18:22:18 +01:00 committed by GitHub
parent 75ab181cdc
commit 15b19c008a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -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/' );
}
/* ------------------------------------------------------ */
?>