File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2020// Define constants.
2121define ( 'ONEDESIGN_VERSION ' , '1.0.0 ' );
2222define ( 'ONEDESIGN_DIR_PATH ' , plugin_dir_path ( __FILE__ ) );
23+ define ( 'ONEDESIGN_RELATIVE_PATH ' , dirname ( plugin_basename ( __FILE__ ) ) );
2324define ( 'ONEDESIGN_DIR_URL ' , plugin_dir_url ( __FILE__ ) );
2425define ( 'ONEDESIGN_BUILD_URI ' , trailingslashit ( plugin_dir_url ( __FILE__ ) ) . 'assets/build/ ' );
2526define ( 'ONEDESIGN_BUILD_PATH ' , trailingslashit ( plugin_dir_path ( __FILE__ ) ) . 'assets/build/ ' );
@@ -86,7 +87,7 @@ function onedesign_plugin_loader() {
8687 \OneDesign \Plugin::get_instance ();
8788
8889 // load plugin text domain.
89- load_plugin_textdomain ( 'onedesign ' , false , ONEDESIGN_DIR_PATH . '/languages/ ' );
90+ load_plugin_textdomain ( 'onedesign ' , false , ONEDESIGN_RELATIVE_PATH . '/languages/ ' );
9091}
9192
9293add_action ( 'plugins_loaded ' , 'onedesign_plugin_loader ' );
You can’t perform that action at this time.
0 commit comments