Skip to content

Commit

Permalink
include function if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Jul 27, 2024
1 parent 62cfe44 commit f433d6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions query-monitor-extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

defined( 'WPINC' ) || die();

if ( ! function_exists( 'get_plugin_data' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

defined( 'QMX_DISABLED' ) || define( 'QMX_DISABLED', false );
defined( 'QMX_TESTED_WITH_QM' ) || define( 'QMX_TESTED_WITH_QM', get_plugin_data( __FILE__ )['QM tested up to'] ?? '3.0.0' );

Expand Down

0 comments on commit f433d6f

Please sign in to comment.