PluginProbe
Plugin Detective – Troubleshooting Conflicts / trunk
Plugin Detective – Troubleshooting Conflicts vtrunk
1.2.33 1.2.32 1.2.31 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2 1.2.1 1.2.10 1.2.12 1.2.13 1.2.14 1.2.16 1.2.19 1.2.20 1.2.22 1.2.23 1.2.24 1.2.25 All 53 releases
← All changes | plugin-detective.php +8 -8 1.2.20trunk View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2 /**
3 - * Plugin Name: Plugin Detective - Troubleshooting
3 + * Plugin Name: Plugin Detective - Troubleshooting Conflicts
4 4 * Plugin URI: https://nsquared.io
5 5 * Description: Quickly troubleshoot & fix plugin conflicts
6 - * Version: 1.2.20
6 + * Version: 1.2.33
7 7 * Author: NSquared
8 8 * Donate link: https://nsquared.io
9 9 * License: GPLv2
10 10 * Text Domain: plugin-detective
@@ -12,9 +12,9 @@
12 12 *
13 13 * @link https://nsquared.io
14 14 *
15 15 * @package Plugin_Detective
16 - * @version 1.2.20
16 + * @version 1.2.33
17 17 *
18 18 * Built using generator-plugin-wp (https://github.com/WebDevStudios/generator-plugin-wp)
19 19 */
20 20
@@ -35,8 +35,10 @@
35 35 * along with this program; if not, write to the Free Software
36 36 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
37 37 */
38 38
39 +// Prevent direct access to this file.
40 +defined( 'ABSPATH' ) || exit;
39 41
40 42 /**
41 43 * Autoloads files with classes when needed.
42 44 *
@@ -70,9 +72,9 @@
70 72 *
71 73 * @var string
72 74 * @since 0.0.0
73 75 */
74 - const VERSION = '1.2.20';
76 + const VERSION = '1.2.33';
75 77
76 78 /**
77 79 * wp admin instance class
78 80 *
@@ -204,11 +206,8 @@
204 206 if ( ! $this->check_requirements() ) {
205 207 return;
206 208 }
207 209
208 - // Load translated strings for plugin.
209 - load_plugin_textdomain( 'plugin-detective', false, dirname( $this->basename ) . '/languages/' );
210 -
211 210 // Initialize plugin classes.
212 211 $this->plugin_classes();
213 212 }
214 213
@@ -291,8 +290,9 @@
291 290 */
292 291 public function requirements_not_met_notice() {
293 292
294 293 // Compile default message.
294 + /* translators: %s: URL of the WordPress plugins admin page. */
295 295 $default_message = sprintf( __( 'Plugin Detective is missing requirements and has been <a href="%s">deactivated</a>. Please make sure all requirements are available.', 'plugin-detective' ), admin_url( 'plugins.php' ) );
296 296
297 297 // Default details to null.
298 298 $details = null;
@@ -329,9 +329,9 @@
329 329 case 'path':
330 330 case 'wp_admin':
331 331 return $this->$field;
332 332 default:
333 - throw new Exception( 'Invalid ' . __CLASS__ . ' property: ' . $field );
333 + throw new Exception( 'Invalid ' . __CLASS__ . ' property: ' . esc_html( $field ) );
334 334 }
335 335 }
336 336
337 337 /**