Skip to content

Commit

Permalink
Issue with version function.
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Apr 12, 2019
1 parent f799a2e commit 5caf8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Provides Function To Check if a plugin is active/inactive & function to compare versions.
*
* @author Varun Sridharan <[email protected]>
* @version 1.0
* @version 1.4
* @since 1.0
* @link https://github.com/varunsridharan/wp-dependencies
* @copyright 2018 Varun Sridharan
Expand Down Expand Up @@ -101,6 +101,7 @@ public static function is_inactive( $file ) {
* @return array
*/
public static function plugin_data( $file, $markup = true, $translate = true ) {
self::load_file();
return get_plugin_data( WP_PLUGIN_DIR . '/' . $file, $markup, $translate );
}

Expand Down

0 comments on commit 5caf8c6

Please sign in to comment.