Skip to content
Snippets Groups Projects
Commit 85c3febf authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Główny plik wtyczki - przekazanie do konstruktora głównej klasy wtyczki

parent a2c42df9
No related branches found
No related tags found
1 merge request!9Merge of devel-plugin-version to devel
...@@ -24,7 +24,10 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10 ...@@ -24,7 +24,10 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10
$class_name = apply_filters( self::WPDESK_FILTER_PLUGIN_CLASS, WPDesk_Plugin_Template_Plugin::class ); $class_name = apply_filters( self::WPDESK_FILTER_PLUGIN_CLASS, WPDesk_Plugin_Template_Plugin::class );
return new $class_name( __FILE__, $wpdesk_plugin_template_plugin_data ); $plugin_dir = dirname( dirname( __FILE__ ) );
$plugin_file = trailingslashit( $plugin_dir ) . basename( $plugin_dir ) . self::PHP_EXTENSION;
return new $class_name( $plugin_file, $wpdesk_plugin_template_plugin_data );
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment