The WP Remote WordPress Plugin - Version 2.4.3

Version Description

Download this release

Release Info

Developer willmot
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 2.4.3
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.3

Files changed (3) hide show
  1. backupwordpress/plugin.php +1 -10
  2. readme.txt +1 -1
  3. wprp.compatability.php +82 -0
backupwordpress/plugin.php CHANGED
@@ -1,14 +1,5 @@
1
  <?php
2
 
3
- /*
4
- Plugin Name: BackUpWordPress
5
- Plugin URI: http://hmn.md/backupwordpress/
6
- Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>.
7
- Author: Human Made Limited
8
- Version: 2.0.6
9
- Author URI: http://hmn.md/
10
- */
11
-
12
  /* Copyright 2011 Human Made Limited (email : support@hmn.md)
13
 
14
  This program is free software; you can redistribute it and/or modify
@@ -116,7 +107,7 @@ function hmbkp_init() {
116
  $plugin_data = get_plugin_data( __FILE__ );
117
 
118
  // define the plugin version
119
- define( 'HMBKP_VERSION', $plugin_data['Version'] );
120
 
121
  // Load translations
122
  load_plugin_textdomain( 'hmbkp', false, HMBKP_PLUGIN_SLUG . '/languages/' );
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
3
  /* Copyright 2011 Human Made Limited (email : support@hmn.md)
4
 
5
  This program is free software; you can redistribute it and/or modify
107
  $plugin_data = get_plugin_data( __FILE__ );
108
 
109
  // define the plugin version
110
+ define( 'HMBKP_VERSION', '2.0.6' );
111
 
112
  // Load translations
113
  load_plugin_textdomain( 'hmbkp', false, HMBKP_PLUGIN_SLUG . '/languages/' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: humanmade, joehoyle, mattheu, tcrsavage, willmot
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.5
6
- Stable tag: 2.4.2
7
 
8
  WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place.
9
 
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.5
6
+ Stable tag: 2.3.1
7
 
8
  WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place.
9
 
wprp.compatability.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Function which takes active plugins and foreaches them though our list of security plugins
4
+ * @return array
5
+ */
6
+ function wprp_get_incompatible_plugins() {
7
+
8
+ // Plugins to check for.
9
+ $security_plugins = array(
10
+ 'BulletProof Security',
11
+ 'Wordfence Security',
12
+ 'Better WP Security',
13
+ 'Wordpress Firewall 2'
14
+ );
15
+
16
+ $active_plugins = get_option( 'active_plugins', array() );
17
+ $dismissed_plugins = get_option( 'dismissed-plugins', array() );
18
+
19
+ //update_option( 'dismissed-plugins', array() );
20
+
21
+ $plugin_matches = array();
22
+
23
+ // foreach through activated plugins and split the string to have one name to check results against.
24
+ foreach ( $active_plugins as $active_plugin ) {
25
+
26
+ $plugin = get_plugin_data( WP_PLUGIN_DIR . '/' . $active_plugin );
27
+
28
+ if ( in_array( $plugin['Name'], $security_plugins ) && ! in_array( $active_plugin, $dismissed_plugins ) )
29
+ $plugin_matches[$active_plugin] = $plugin['Name'];
30
+
31
+ }
32
+
33
+ return $plugin_matches;
34
+ }
35
+
36
+ /**
37
+ * foreach through array of matched plugins and for each print the notice.
38
+ */
39
+ function wprp_security_admin_notice() {
40
+
41
+ foreach ( wprp_get_incompatible_plugins() as $plugin_path => $plugin_name ) :
42
+
43
+ ?>
44
+
45
+ <div class="error">
46
+
47
+ <a class="close-button button" style="float: right; margin-top: 4px; color: inherit; text-decoration: none; " href="<?php echo add_query_arg( 'wpr_dismiss_plugin_warning', $plugin_path ); ?>">Don't show again</a>
48
+
49
+ <p>
50
+
51
+ The plugin <strong><?php echo esc_attr( $plugin_name ); ?></strong> may cause issues with WP Remote.
52
+
53
+ <a href="https://wpremote.com/faq/#<?php echo esc_attr( $plugin_name ); ?>" alt="WPRemote FAQ"> Click here for instructions on how to resolve this issue </a>
54
+
55
+ </p>
56
+
57
+ </div>
58
+
59
+ <?php endforeach;
60
+
61
+ }
62
+
63
+ add_action( 'admin_notices', 'wprp_security_admin_notice' );
64
+
65
+ /**
66
+ * Function which checks to see if the plugin was dismissed.
67
+ */
68
+ function wprp_dismissed_plugin_notice_check() {
69
+
70
+ if ( ! empty( $_GET['wpr_dismiss_plugin_warning'] ) ) {
71
+
72
+ $dismissed = get_option( 'dismissed-plugins', array() );
73
+ $dismissed[] = $_GET['wpr_dismiss_plugin_warning'];
74
+
75
+ update_option( 'dismissed-plugins', $dismissed );
76
+
77
+ wp_redirect( remove_query_arg( 'wpr_dismiss_plugin_warning' ) );
78
+ exit;
79
+
80
+ }
81
+ }
82
+ add_action( 'init', 'wprp_dismissed_plugin_notice_check' );