Plugin Directory

Changeset 2719926


Ignore:
Timestamp:
05/07/2022 06:03:55 PM (4 years ago)
Author:
ipol
Message:

v 1.0

Location:
fivepost/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fivepost/trunk/classes/fivepost-wp.class.php

    r2719914 r2719926  
    275275    */
    276276    public function actionInit() {
    277         load_plugin_textdomain('fivepost-wp', false, 'fivepost-wp'.'/languages/');
     277        load_textdomain('fivepost-wp',FIVEPOST_PLUGIN_DIR.'/languages/fivepost-wp-ru_RU.mo');
    278278    }
    279279
  • fivepost/trunk/fivepost-wp.php

    r2719914 r2719926  
    1717
    1818const FIVEPOST_PLUGIN_VERSION = '1.0.0';
    19 //const FIVEPOST_CHECK_VERSION_URL = 'http://ozon-wp.ipol.tech/update/version.php';
    2019const FIVEPOST_PLUGIN_REQUIRES = '5.0';
    2120const FIVEPOST_PLUGIN_TESTED = '5.8.2';
     
    2322const FIVEPOST_LIB_NAMESPACE = 'Ipol\Fivepost';
    2423const FIVEPOST_PLUGIN_DOMAIN = 'fivepost-wp';
    25 const FIVEPOST_PLUGIN_DIR = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . FIVEPOST_PLUGIN_DOMAIN . DIRECTORY_SEPARATOR;
     24//const FIVEPOST_PLUGIN_DIR = dirname(__FILE__) . DIRECTORY_SEPARATOR;
    2625
     26define('FIVEPOST_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    2727define('FIVEPOST_PLUGIN_BASENAME', plugin_basename(__FILE__));
    2828define('FIVEPOST_PLUGIN_URI', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.