Plugin Directory

Changeset 1228170


Ignore:
Timestamp:
08/22/2015 08:03:04 PM (11 years ago)
Author:
evilkitteh
Message:

Bug fix

Location:
code-analyzer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code-analyzer/tags/0.2/classes/class-database.php

    r1228166 r1228170  
    7171     */
    7272    public static function plugin_version(){
     73        if( ! function_exists( 'get_plugin_data' ) ){
     74            require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     75        }
     76
    7377        $main_file = dirname( dirname( __FILE__ ) ) . '/code-analyzer.php';
    7478        $plugin_data = get_plugin_data( $main_file, false, false );
  • code-analyzer/trunk/classes/class-database.php

    r1228166 r1228170  
    7171     */
    7272    public static function plugin_version(){
     73        if( ! function_exists( 'get_plugin_data' ) ){
     74            require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     75        }
     76
    7377        $main_file = dirname( dirname( __FILE__ ) ) . '/code-analyzer.php';
    7478        $plugin_data = get_plugin_data( $main_file, false, false );
Note: See TracChangeset for help on using the changeset viewer.