Query Monitor - Version 2.11.4

Version Description

Download this release

Release Info

Developer johnbillion
Plugin Icon 128x128 Query Monitor
Version 2.11.4
Comparing to
See all releases

Code changes from version 2.11.3 to 2.11.4

classes/Activation.php CHANGED
@@ -23,8 +23,8 @@ class QM_Activation extends QM_Plugin {
23
  add_filter( 'pre_update_site_option_active_sitewide_plugins', array( $this, 'filter_active_sitewide_plugins' ) );
24
 
25
  # Activation and deactivation
26
- register_activation_hook( __FILE__, array( $this, 'activate' ) );
27
- register_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );
28
 
29
  # Parent setup:
30
  parent::__construct( $file );
@@ -38,7 +38,7 @@ class QM_Activation extends QM_Plugin {
38
  }
39
 
40
  if ( ! file_exists( $db = WP_CONTENT_DIR . '/db.php' ) && function_exists( 'symlink' ) ) {
41
- @symlink( plugin_dir_path( __FILE__ ) . 'wp-content/db.php', $db );
42
  }
43
 
44
  if ( $sitewide ) {
23
  add_filter( 'pre_update_site_option_active_sitewide_plugins', array( $this, 'filter_active_sitewide_plugins' ) );
24
 
25
  # Activation and deactivation
26
+ register_activation_hook( $file, array( $this, 'activate' ) );
27
+ register_deactivation_hook( $file, array( $this, 'deactivate' ) );
28
 
29
  # Parent setup:
30
  parent::__construct( $file );
38
  }
39
 
40
  if ( ! file_exists( $db = WP_CONTENT_DIR . '/db.php' ) && function_exists( 'symlink' ) ) {
41
+ @symlink( plugin_dir_path( $this->file ) . 'wp-content/db.php', $db );
42
  }
43
 
44
  if ( $sitewide ) {
collectors/php_errors.php CHANGED
@@ -83,6 +83,8 @@ class QM_Collector_PHP_Errors extends QM_Collector {
83
  }
84
 
85
  if ( ! isset( self::$unexpected_error ) ) {
 
 
86
  $unexpected_error = 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.';
87
  $wordpress_couldnt = '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)';
88
  self::$unexpected_error = __( $unexpected_error );
83
  }
84
 
85
  if ( ! isset( self::$unexpected_error ) ) {
86
+ // These strings are from core. They're passed through `__()` as variables so they get translated at runtime
87
+ // but do not get seen by GlotPress when it populates its database of translatable strings for QM.
88
  $unexpected_error = 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.';
89
  $wordpress_couldnt = '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)';
90
  self::$unexpected_error = __( $unexpected_error );
query-monitor.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Query Monitor
4
  Description: Monitoring of database queries, hooks, conditionals and more.
5
- Version: 2.11.3
6
  Plugin URI: https://github.com/johnbillion/query-monitor
7
  Author: John Blackbourn
8
  Author URI: https://johnblackbourn.com/
2
  /*
3
  Plugin Name: Query Monitor
4
  Description: Monitoring of database queries, hooks, conditionals and more.
5
+ Version: 2.11.4
6
  Plugin URI: https://github.com/johnbillion/query-monitor
7
  Author: John Blackbourn
8
  Author URI: https://johnblackbourn.com/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: johnbillion
3
  Tags: ajax, debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor, rest-api
4
  Requires at least: 3.7
5
  Tested up to: 4.6
6
- Stable tag: 2.11.3
7
  License: GPLv2 or later
8
 
9
  View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.
3
  Tags: ajax, debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor, rest-api
4
  Requires at least: 3.7
5
  Tested up to: 4.6
6
+ Stable tag: 2.11.4
7
  License: GPLv2 or later
8
 
9
  View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.