Skip to content

Commit

Permalink
Merge pull request #368 from swissspidy/patch-1
Browse files Browse the repository at this point in the history
Rely on just-in-time translation loading
  • Loading branch information
enricobattocchi authored May 8, 2024
2 parents 787a2c5 + 614f659 commit 82c1d02
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions duplicate-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ function __duplicate_post_main() {
}
// phpcs:enable

/**
* Initialises the internationalisation domain.
*
* @return void
*/
function duplicate_post_load_plugin_textdomain() {
load_plugin_textdomain( 'duplicate-post', false, basename( __DIR__ ) . '/languages/' );
}
add_action( 'plugins_loaded', 'duplicate_post_load_plugin_textdomain' );

add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'duplicate_post_plugin_actions', 10 );

/**
Expand Down

0 comments on commit 82c1d02

Please sign in to comment.