Version Description
Download this release
Release Info
| Developer | joehoyle |
| Plugin | |
| Version | 2.6.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.6.1 to 2.6.2
- plugin.php +2 -2
- readme.txt +5 -1
- wprp.backups.php +1 -2
- wprp.compatability.php +1 -1
- wprp.hm.backup.php +23 -27
- wprp.plugins.php +4 -1
- wprp.themes.php +0 -1
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.6.
|
| 7 |
Author: Human Made Limited
|
| 8 |
Author URI: http://hmn.md/
|
| 9 |
*/
|
|
@@ -257,7 +257,7 @@ function wprp_translations_init() {
|
|
| 257 |
/** Set filter for WordPress languages directory */
|
| 258 |
$wprp_wp_lang_dir = apply_filters(
|
| 259 |
'wprp_filter_wp_lang_dir',
|
| 260 |
-
trailingslashit( WP_LANG_DIR ) . trailingslashit( '
|
| 261 |
);
|
| 262 |
|
| 263 |
/** Translations: First, look in WordPress' "languages" folder = custom & update-secure! */
|
| 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.6.2
|
| 7 |
Author: Human Made Limited
|
| 8 |
Author URI: http://hmn.md/
|
| 9 |
*/
|
| 257 |
/** Set filter for WordPress languages directory */
|
| 258 |
$wprp_wp_lang_dir = apply_filters(
|
| 259 |
'wprp_filter_wp_lang_dir',
|
| 260 |
+
trailingslashit( WP_LANG_DIR ) . trailingslashit( 'wp-remote' ) . $wprp_textdomain . '-' . $plugin_locale . '.mo'
|
| 261 |
);
|
| 262 |
|
| 263 |
/** Translations: First, look in WordPress' "languages" folder = custom & update-secure! */
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: humanmade, willmot, joehoyle, danielbachhuber, mattheu, pauldewout
|
|
| 3 |
Tags: wpremote, remote administration, multiple wordpress
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 3.6
|
| 6 |
-
Stable tag: 2.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 |
|
|
@@ -31,6 +31,10 @@ You can email us at support@wpremote.com for support.
|
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
#### 2.6.1 (26 August 2013)
|
| 35 |
|
| 36 |
* Add multiple API keys to your WP Remote plugin with a `wpr_api_keys` filter if you'd like to use more than WP Remote account with the site.
|
| 3 |
Tags: wpremote, remote administration, multiple wordpress
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 3.6
|
| 6 |
+
Stable tag: 2.6.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 |
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
| 34 |
+
#### 2.6.2 (2 September 2013)
|
| 35 |
+
|
| 36 |
+
* Bug fix: Reactivating plugin after plugin upgrade.
|
| 37 |
+
|
| 38 |
#### 2.6.1 (26 August 2013)
|
| 39 |
|
| 40 |
* Add multiple API keys to your WP Remote plugin with a `wpr_api_keys` filter if you'd like to use more than WP Remote account with the site.
|
wprp.backups.php
CHANGED
|
@@ -35,8 +35,7 @@ class WPRP_Backups extends WPRP_HM_Backup {
|
|
| 35 |
* all the files and sub-directories.
|
| 36 |
*
|
| 37 |
* @param string $dir
|
| 38 |
-
* @
|
| 39 |
-
* @access public
|
| 40 |
*/
|
| 41 |
public static function rmdir_recursive( $dir ) {
|
| 42 |
|
| 35 |
* all the files and sub-directories.
|
| 36 |
*
|
| 37 |
* @param string $dir
|
| 38 |
+
* @return bool
|
|
|
|
| 39 |
*/
|
| 40 |
public static function rmdir_recursive( $dir ) {
|
| 41 |
|
wprp.compatability.php
CHANGED
|
@@ -51,7 +51,7 @@ function wprp_security_admin_notice() {
|
|
| 51 |
|
| 52 |
<?php _e( 'The plugin', 'wpremote' );?> <strong><?php echo esc_attr( $plugin_name ); ?></strong> <?php _e( 'may cause issues with WP Remote.', 'wpremote' ); ?>
|
| 53 |
|
| 54 |
-
<a href="https://wpremote.com/support-center/troubleshooting/my-site-is-showing-up-as-red/#<?php echo esc_attr( $plugin_name ); ?>"
|
| 55 |
|
| 56 |
</p>
|
| 57 |
|
| 51 |
|
| 52 |
<?php _e( 'The plugin', 'wpremote' );?> <strong><?php echo esc_attr( $plugin_name ); ?></strong> <?php _e( 'may cause issues with WP Remote.', 'wpremote' ); ?>
|
| 53 |
|
| 54 |
+
<a href="https://wpremote.com/support-center/troubleshooting/my-site-is-showing-up-as-red/#<?php echo esc_attr( $plugin_name ); ?>" title="WPRemote Support Center"> <?php _e( 'Click here for instructions on how to resolve this issue', 'wpremote' ); ?> </a>
|
| 55 |
|
| 56 |
</p>
|
| 57 |
|
wprp.hm.backup.php
CHANGED
|
@@ -277,8 +277,8 @@ class WPRP_HM_Backup {
|
|
| 277 |
/**
|
| 278 |
* Set the filename of the archive file
|
| 279 |
*
|
| 280 |
-
* @access public
|
| 281 |
* @param string $filename
|
|
|
|
| 282 |
*/
|
| 283 |
public function set_archive_filename( $filename ) {
|
| 284 |
|
|
@@ -322,8 +322,8 @@ class WPRP_HM_Backup {
|
|
| 322 |
/**
|
| 323 |
* Set the filename of the database dump file
|
| 324 |
*
|
| 325 |
-
* @access public
|
| 326 |
* @param string $filename
|
|
|
|
| 327 |
*/
|
| 328 |
public function set_database_dump_filename( $filename ) {
|
| 329 |
|
|
@@ -354,14 +354,13 @@ class WPRP_HM_Backup {
|
|
| 354 |
|
| 355 |
}
|
| 356 |
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
public function set_root( $path ) {
|
| 365 |
|
| 366 |
if ( empty( $path ) || ! is_string( $path ) || ! is_dir ( $path ) )
|
| 367 |
throw new Exception( sprintf( __( 'Invalid root path %s must be a valid directory path', 'wpremote' ), '<code>' . $path . '</code>' ) );
|
|
@@ -385,14 +384,13 @@ class WPRP_HM_Backup {
|
|
| 385 |
|
| 386 |
}
|
| 387 |
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
public function set_path( $path ) {
|
| 396 |
|
| 397 |
if ( empty( $path ) || ! is_string( $path ) )
|
| 398 |
throw new Exception( sptrinf( __( 'Invalid backup path %s must be a non empty (string)', wpremote ), '<code>' . $path . '</code>' ) );
|
|
@@ -443,9 +441,8 @@ class WPRP_HM_Backup {
|
|
| 443 |
* Set the backup type
|
| 444 |
*
|
| 445 |
* $type must be one of complete, database or file
|
| 446 |
-
*
|
| 447 |
-
* @access public
|
| 448 |
* @param string $type
|
|
|
|
| 449 |
*/
|
| 450 |
public function set_type( $type ) {
|
| 451 |
|
|
@@ -1381,8 +1378,8 @@ class WPRP_HM_Backup {
|
|
| 1381 |
/**
|
| 1382 |
* Add backquotes to tables and db-names in SQL queries. Taken from phpMyAdmin.
|
| 1383 |
*
|
| 1384 |
-
* @
|
| 1385 |
-
* @
|
| 1386 |
*/
|
| 1387 |
private function sql_backquote( $a_name ) {
|
| 1388 |
|
|
@@ -1558,9 +1555,9 @@ class WPRP_HM_Backup {
|
|
| 1558 |
* Better addslashes for SQL queries.
|
| 1559 |
* Taken from phpMyAdmin.
|
| 1560 |
*
|
| 1561 |
-
* @
|
| 1562 |
-
* @param
|
| 1563 |
-
* @
|
| 1564 |
*/
|
| 1565 |
private function sql_addslashes( $a_string = '', $is_like = false ) {
|
| 1566 |
|
|
@@ -1577,9 +1574,8 @@ class WPRP_HM_Backup {
|
|
| 1577 |
|
| 1578 |
/**
|
| 1579 |
* Write the SQL file
|
| 1580 |
-
*
|
| 1581 |
-
* @access private
|
| 1582 |
* @param string $sql
|
|
|
|
| 1583 |
*/
|
| 1584 |
private function write_sql( $sql ) {
|
| 1585 |
|
| 277 |
/**
|
| 278 |
* Set the filename of the archive file
|
| 279 |
*
|
|
|
|
| 280 |
* @param string $filename
|
| 281 |
+
* @throws Exception
|
| 282 |
*/
|
| 283 |
public function set_archive_filename( $filename ) {
|
| 284 |
|
| 322 |
/**
|
| 323 |
* Set the filename of the database dump file
|
| 324 |
*
|
|
|
|
| 325 |
* @param string $filename
|
| 326 |
+
* @throws Exception
|
| 327 |
*/
|
| 328 |
public function set_database_dump_filename( $filename ) {
|
| 329 |
|
| 354 |
|
| 355 |
}
|
| 356 |
|
| 357 |
+
/**
|
| 358 |
+
* Set the root directory to backup from
|
| 359 |
+
*
|
| 360 |
+
* @param string $path
|
| 361 |
+
* @throws Exception
|
| 362 |
+
*/
|
| 363 |
+
public function set_root( $path ) {
|
|
|
|
| 364 |
|
| 365 |
if ( empty( $path ) || ! is_string( $path ) || ! is_dir ( $path ) )
|
| 366 |
throw new Exception( sprintf( __( 'Invalid root path %s must be a valid directory path', 'wpremote' ), '<code>' . $path . '</code>' ) );
|
| 384 |
|
| 385 |
}
|
| 386 |
|
| 387 |
+
/**
|
| 388 |
+
* Set the directory backups are saved to
|
| 389 |
+
*
|
| 390 |
+
* @param string $path
|
| 391 |
+
* @throws Exception
|
| 392 |
+
*/
|
| 393 |
+
public function set_path( $path ) {
|
|
|
|
| 394 |
|
| 395 |
if ( empty( $path ) || ! is_string( $path ) )
|
| 396 |
throw new Exception( sptrinf( __( 'Invalid backup path %s must be a non empty (string)', wpremote ), '<code>' . $path . '</code>' ) );
|
| 441 |
* Set the backup type
|
| 442 |
*
|
| 443 |
* $type must be one of complete, database or file
|
|
|
|
|
|
|
| 444 |
* @param string $type
|
| 445 |
+
* @throws Exception
|
| 446 |
*/
|
| 447 |
public function set_type( $type ) {
|
| 448 |
|
| 1378 |
/**
|
| 1379 |
* Add backquotes to tables and db-names in SQL queries. Taken from phpMyAdmin.
|
| 1380 |
*
|
| 1381 |
+
* @param $a_name
|
| 1382 |
+
* @return array|string
|
| 1383 |
*/
|
| 1384 |
private function sql_backquote( $a_name ) {
|
| 1385 |
|
| 1555 |
* Better addslashes for SQL queries.
|
| 1556 |
* Taken from phpMyAdmin.
|
| 1557 |
*
|
| 1558 |
+
* @param string $a_string
|
| 1559 |
+
* @param bool $is_like
|
| 1560 |
+
* @return mixed
|
| 1561 |
*/
|
| 1562 |
private function sql_addslashes( $a_string = '', $is_like = false ) {
|
| 1563 |
|
| 1574 |
|
| 1575 |
/**
|
| 1576 |
* Write the SQL file
|
|
|
|
|
|
|
| 1577 |
* @param string $sql
|
| 1578 |
+
* @return bool
|
| 1579 |
*/
|
| 1580 |
private function write_sql( $sql ) {
|
| 1581 |
|
wprp.plugins.php
CHANGED
|
@@ -116,7 +116,10 @@ function _wprp_update_plugin( $plugin ) {
|
|
| 116 |
|
| 117 |
// we do a remote request to activate, as we don't want to kill any installs
|
| 118 |
$data = array( 'actions' => array( 'activate_plugin' ), 'plugin' => $plugin, 'timestamp' => (string) time() );
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
$args = array( 'body' => $data );
|
| 122 |
|
| 116 |
|
| 117 |
// we do a remote request to activate, as we don't want to kill any installs
|
| 118 |
$data = array( 'actions' => array( 'activate_plugin' ), 'plugin' => $plugin, 'timestamp' => (string) time() );
|
| 119 |
+
|
| 120 |
+
list( $hash ) = WPR_API_Request::generate_hashes( $data );
|
| 121 |
+
|
| 122 |
+
$data['wpr_verify_key'] = $hash;
|
| 123 |
|
| 124 |
$args = array( 'body' => $data );
|
| 125 |
|
wprp.themes.php
CHANGED
|
@@ -50,7 +50,6 @@ function _wprp_get_themes() {
|
|
| 50 |
|
| 51 |
$theme_array = array(
|
| 52 |
'Name' => $theme->get( 'Name' ),
|
| 53 |
-
'Template' => $theme->get( 'Template' ),
|
| 54 |
'active' => $active == $theme->get( 'Name' ),
|
| 55 |
'Template' => $theme->get_template(),
|
| 56 |
'Stylesheet' => $theme->get_stylesheet(),
|
| 50 |
|
| 51 |
$theme_array = array(
|
| 52 |
'Name' => $theme->get( 'Name' ),
|
|
|
|
| 53 |
'active' => $active == $theme->get( 'Name' ),
|
| 54 |
'Template' => $theme->get_template(),
|
| 55 |
'Stylesheet' => $theme->get_stylesheet(),
|
