WordPress.org

Make WordPress Core

Ticket #16012: stp-importer-i18n-fix.patch

File stp-importer-i18n-fix.patch, 989 bytes (added by SergeyBiryukov, 7 years ago)
  • trunk/stp-importer.php

     
    178178        }
    179179}
    180180
    181 // create the import object
    182 $stp_import = new STP_Import();
    183 
    184 // add it to the import page!
    185 register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into WordPress tags.', 'stp-importer'), array($stp_import, 'dispatch'));
    186 
    187181} // class_exists( 'WP_Importer' )
    188182
    189183function stp_importer_init() {
    190184    load_plugin_textdomain( 'stp-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     185
     186        // create the import object
     187        $stp_import = new STP_Import();
     188        // add it to the import page!
     189        register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into WordPress tags.', 'stp-importer'), array($stp_import, 'dispatch'));
    191190}
    192 add_action( 'init', 'stp_importer_init' );
     191add_action( 'admin_init', 'stp_importer_init' );