Skip to content

Commit

Permalink
use plugin header for constant value
Browse files Browse the repository at this point in the history
closes #87
  • Loading branch information
szepeviktor authored Jul 26, 2024
1 parent 02e37fc commit 62cfe44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query-monitor-extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
defined( 'WPINC' ) || die();

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

if ( defined( 'QM_DISABLED' ) && constant( 'QM_DISABLED' ) ) {
return;
Expand Down Expand Up @@ -57,7 +57,7 @@
'Tested up to <a href="%1$s" rel="noopener noreferrer">Query Monitor</a> <a href="%2$s%3$s" rel="noopener noreferrer">%3$s</a>',
'https://wordpress.org/plugins/query-monitor/',
'https://github.com/johnbillion/query-monitor/releases/tag/',
constant( 'QMX_TESTED_WITH_QM' ),
constant( 'QMX_TESTED_WITH_QM' )
)
);

Expand Down

0 comments on commit 62cfe44

Please sign in to comment.