The WP Remote WordPress Plugin - Version 2.7.6

Version Description

Download this release

Release Info

Developer rmccue
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 2.7.6
Comparing to
See all releases

Code changes from version 2.7.5 to 2.7.6

Files changed (4) hide show
  1. plugin.php +1 -1
  2. readme.txt +7 -2
  3. wprp.plugins.php +4 -2
  4. wprp.themes.php +3 -2
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: WP Remote
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. <strong>Deactivate to clear your API Key.</strong>
6
- Version: 2.7.5
7
  Author: Human Made Limited
8
  Author URI: http://hmn.md/
9
  */
3
  /*
4
  Plugin Name: WP Remote
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. <strong>Deactivate to clear your API Key.</strong>
6
+ Version: 2.7.6
7
  Author: Human Made Limited
8
  Author URI: http://hmn.md/
9
  */
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: humanmade, willmot, joehoyle, danielbachhuber, mattheu, pauldewouters, cuvelier, tcrsavage
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 3.0
5
- Tested up to: 4.0
6
- Stable tag: 2.7.5
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
 
@@ -72,6 +72,11 @@ You can email us at support@wpremote.com for support.
72
 
73
  == Changelog ==
74
 
 
 
 
 
 
75
  #### 2.7.5 (10 Sept 2014)
76
 
77
  * Fixed WordPress 4.0 issues with json_encode of a WP_Error object which would result in malformed responses from the WP_Remote WordPress plugin
2
  Contributors: humanmade, willmot, joehoyle, danielbachhuber, mattheu, pauldewouters, cuvelier, tcrsavage
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 3.0
5
+ Tested up to: 4.7
6
+ Stable tag: 2.7.6
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
 
72
 
73
  == Changelog ==
74
 
75
+ #### 2.7.6 (18 Sept 2014)
76
+
77
+ * Fixed issue with plugins not being reactivated when updated on an MU WordPress install
78
+ * Fixed issue with child themes reporting an available update whenever the parent theme has an available update
79
+
80
  #### 2.7.5 (10 Sept 2014)
81
 
82
  * Fixed WordPress 4.0 issues with json_encode of a WP_Error object which would result in malformed responses from the WP_Remote WordPress plugin
wprp.plugins.php CHANGED
@@ -96,7 +96,9 @@ function _wprp_update_plugin( $plugin_file, $args ) {
96
  if ( ! _wpr_check_filesystem_access() )
97
  return new WP_Error( 'filesystem-not-writable', __( 'The filesystem is not writable with the supplied credentials', 'wpremote' ) );
98
 
99
- $is_active = is_plugin_active( $plugin_file );
 
 
100
  foreach( get_plugins() as $path => $maybe_plugin ) {
101
 
102
  if ( $path == $plugin_file ) {
@@ -167,7 +169,7 @@ function _wprp_update_plugin( $plugin_file, $args ) {
167
  // If the plugin was activited, we have to re-activate it
168
  // but if activate_plugin() fatals, then we'll just have to return 500
169
  if ( $is_active )
170
- activate_plugin( $plugin_file, '', false, true );
171
 
172
  return array( 'status' => 'success' );
173
  }
96
  if ( ! _wpr_check_filesystem_access() )
97
  return new WP_Error( 'filesystem-not-writable', __( 'The filesystem is not writable with the supplied credentials', 'wpremote' ) );
98
 
99
+ $is_active = is_plugin_active( $plugin_file );
100
+ $is_active_network = is_plugin_active_for_network( $plugin_file );
101
+
102
  foreach( get_plugins() as $path => $maybe_plugin ) {
103
 
104
  if ( $path == $plugin_file ) {
169
  // If the plugin was activited, we have to re-activate it
170
  // but if activate_plugin() fatals, then we'll just have to return 500
171
  if ( $is_active )
172
+ activate_plugin( $plugin_file, '', $is_active_network, true );
173
 
174
  return array( 'status' => 'success' );
175
  }
wprp.themes.php CHANGED
@@ -44,7 +44,8 @@ function _wprp_get_themes() {
44
  // WordPress 3.4+
45
  if ( is_object( $theme ) && is_a( $theme, 'WP_Theme' ) ) {
46
 
47
- $new_version = isset( $current->response[$theme['Template']] ) ? $current->response[$theme['Template']]['new_version'] : null;
 
48
 
49
  $theme_array = array(
50
  'Name' => $theme->get( 'Name' ),
@@ -63,7 +64,7 @@ function _wprp_get_themes() {
63
 
64
  } else {
65
 
66
- $new_version = isset( $current->response[$theme['Template']] ) ? $current->response[$theme['Template']]['new_version'] : null;
67
 
68
  if ( $active == $theme['Name'] )
69
  $themes[$key]['active'] = true;
44
  // WordPress 3.4+
45
  if ( is_object( $theme ) && is_a( $theme, 'WP_Theme' ) ) {
46
 
47
+ /* @var $theme WP_Theme */
48
+ $new_version = isset( $current->response[$theme->get_stylesheet()] ) ? $current->response[$theme->get_stylesheet()]['new_version'] : null;
49
 
50
  $theme_array = array(
51
  'Name' => $theme->get( 'Name' ),
64
 
65
  } else {
66
 
67
+ $new_version = isset( $current->response[$theme['Stylesheet']] ) ? $current->response[$theme['Stylesheet']]['new_version'] : null;
68
 
69
  if ( $active == $theme['Name'] )
70
  $themes[$key]['active'] = true;