Plugin Directory

Changeset 1758992


Ignore:
Timestamp:
11/05/2017 01:35:13 PM (8 years ago)
Author:
ishimwe
Message:

Fixed the translation/localization issue for public /wp access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sidebar-post/trunk/sidebar_post.php

    r1758900 r1758992  
    44Plugin URI: http://www.codiiv.com
    55Description: This plugin places a posting form in the sidebar
    6 Version: 3.0.7
     6Version: 3.0.8
    77Author: Janvier M @ CODIIV
    88Author URI: http://www.codiiv.com
     
    1818global $shortname;
    1919$shortname = "spost_";
    20 define('SPOST_VERSION','3.0.7');
    21 define('SPOST_DATABASE_VERSION','3.0.7');
     20define('SPOST_VERSION','3.0.8');
     21define('SPOST_DATABASE_VERSION','3.0.8');
    2222define('SPOST_BUILD','05112017');
    2323define('SOFTWARE_NAME',__('Sidebar Post','spost'));
     
    4242function spost_theme_setup(){
    4343    //load_theme_textdomain('spost', SPOST_PLUGIN_URL . '/languages');
    44     load_plugin_textdomain( 'spost', false, SPOST_PLUGIN_URL . '/languages/');
    45 }add_action( 'init', 'spost_theme_setup' );
     44    load_plugin_textdomain( 'spost', false, basename( dirname(__FILE__) ).'/languages/');
     45}add_action( 'plugins_loaded', 'spost_theme_setup' );
    4646
    4747
Note: See TracChangeset for help on using the changeset viewer.