Skip to content

Commit

Permalink
plugin_texdomain is loaded as early as possible, plugins_loaded comes…
Browse files Browse the repository at this point in the history
… earlier than init
  • Loading branch information
soulseekah committed May 19, 2012
1 parent 9994578 commit 013692b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gravityforms-savedforms/gravityforms-savedforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function get_instance() {

public function bootstrap() {
/* Attach hooks and other early initialization */
add_action( 'init', array( $this, 'init' ) );
add_action( 'plugins_loaded', array( $this, 'early_init' ) );

/* Form editor script */
add_action( 'gform_editor_js', array( $this, 'editor_script' ) );
Expand All @@ -46,7 +46,7 @@ public function bootstrap() {
add_filter( 'gform_addon_navigation', array( $this, 'add_pending_completed_entries_item' ) );
}

public function init() {
public function early_init() {
/* Load languages if available */
load_plugin_textdomain( self::$textdomain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );

Expand Down

0 comments on commit 013692b

Please sign in to comment.