Skip to content
Snippets Groups Projects
Commit b012c47d authored by Krzysiek's avatar Krzysiek
Browse files

Merge branch 'devel-plugin-version' into 'devel'

Merge of devel-plugin-version to devel

See merge request wpdesk/plugin-template!9
parents 870fcc93 819a8801
No related branches found
No related tags found
1 merge request!9Merge of devel-plugin-version to devel
......@@ -6,6 +6,8 @@ require_once( 'plugin-template-plugin.php' );
final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10 {
const PHP_EXTENSION = '.php';
/** @var WPDesk_Plugin_Template_Plugin */
private static $instance = null;
......@@ -24,7 +26,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 );
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