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 +20 -12 1.1.7trunk View file →
@@ -1,20 +1,20 @@
1 1 <?php
2 2 /**
3 - * Plugin Name: Plugin Detective - Troubleshooting
4 - * Plugin URI: https://nsqua.red
3 + * Plugin Name: Plugin Detective - Troubleshooting Conflicts
4 + * Plugin URI: https://nsquared.io
5 5 * Description: Quickly troubleshoot & fix plugin conflicts
6 - * Version: 1.1.7
7 - * Author: N Squared
8 - * Donate link: https://nsqua.red
6 + * Version: 1.2.33
7 + * Author: NSquared
8 + * Donate link: https://nsquared.io
9 9 * License: GPLv2
10 10 * Text Domain: plugin-detective
11 11 * Domain Path: /languages
12 12 *
13 - * @link https://nsqua.red
13 + * @link https://nsquared.io
14 14 *
15 15 * @package Plugin_Detective
16 - * @version 1.1.7
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,11 +72,19 @@
70 72 *
71 73 * @var string
72 74 * @since 0.0.0
73 75 */
74 - const VERSION = '1.1.7';
76 + const VERSION = '1.2.33';
75 77
76 78 /**
79 + * wp admin instance class
80 + *
81 + * @var string
82 + * @since 0.0.0
83 + */
84 + protected $wp_admin = null;
85 +
86 + /**
77 87 * URL of plugin directory.
78 88 *
79 89 * @var string
80 90 * @since 0.0.0
@@ -196,11 +206,8 @@
196 206 if ( ! $this->check_requirements() ) {
197 207 return;
198 208 }
199 209
200 - // Load translated strings for plugin.
201 - load_plugin_textdomain( 'plugin-detective', false, dirname( $this->basename ) . '/languages/' );
202 -
203 210 // Initialize plugin classes.
204 211 $this->plugin_classes();
205 212 }
206 213
@@ -283,8 +290,9 @@
283 290 */
284 291 public function requirements_not_met_notice() {
285 292
286 293 // Compile default message.
294 + /* translators: %s: URL of the WordPress plugins admin page. */
287 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' ) );
288 296
289 297 // Default details to null.
290 298 $details = null;
@@ -321,9 +329,9 @@
321 329 case 'path':
322 330 case 'wp_admin':
323 331 return $this->$field;
324 332 default:
325 - throw new Exception( 'Invalid ' . __CLASS__ . ' property: ' . $field );
333 + throw new Exception( 'Invalid ' . __CLASS__ . ' property: ' . esc_html( $field ) );
326 334 }
327 335 }
328 336
329 337 /**