Version Description
Download this release
Release Info
Developer | jeramynirodha |
Plugin | The WP Remote WordPress Plugin |
Version | 2.8.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.1 to 2.8.2
- cli/wprp.cli.php +25 -0
- plugin.php +6 -1
- readme.txt +7 -2
- wprp.admin.php +2 -2
cli/wprp.cli.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPRP_tasks extends WP_CLI_Command {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Find work for this process, will make this process now block
|
7 |
+
*
|
8 |
+
* @subcommand set-api
|
9 |
+
*/
|
10 |
+
public function send_emails( $args, $assoc_args ) {
|
11 |
+
$count = count($args);
|
12 |
+
if ($count == 0 || $count > 1) {
|
13 |
+
WP_CLI::line( 'Please set the args correctly' );
|
14 |
+
die();
|
15 |
+
}
|
16 |
+
delete_option( 'wpr_api_key' );
|
17 |
+
add_option( 'wpr_api_key', $args[0]);
|
18 |
+
WP_CLI::line( 'API Key Set' );
|
19 |
+
|
20 |
+
// WP_CLI::line( sprintf( "[%s] Worker %d completed its work.", date( 'Y-m-d H:i:s' ), getmypid() ) );
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
WP_CLI::add_command( 'wpremote', 'WPRP_tasks' );
|
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>.
|
6 |
-
Version: 2.8.
|
7 |
Author: maekit
|
8 |
Author URI: https://maek.it/
|
9 |
*/
|
@@ -309,3 +309,8 @@ function wprp_format_user_obj( $user_obj ) {
|
|
309 |
|
310 |
return $new_user_obj;
|
311 |
}
|
|
|
|
|
|
|
|
|
|
3 |
/*
|
4 |
Plugin Name: WP Remote
|
5 |
Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
|
6 |
+
Version: 2.8.2
|
7 |
Author: maekit
|
8 |
Author URI: https://maek.it/
|
9 |
*/
|
309 |
|
310 |
return $new_user_obj;
|
311 |
}
|
312 |
+
|
313 |
+
// == CLI == //
|
314 |
+
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
315 |
+
require_once 'cli/wprp.cli.php';
|
316 |
+
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: jeramynirodha, bmett, 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.8.
|
6 |
-
Stable tag: 2.8.
|
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 |
|
@@ -69,6 +69,11 @@ You can email us at support@wpremote.com for support.
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
#### 2.8.1 (10 October 2017)
|
73 |
|
74 |
* Add link to clear API key from the plugin settings page.
|
2 |
Contributors: jeramynirodha, bmett, 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.8.2
|
6 |
+
Stable tag: 2.8.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 |
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
#### 2.8.2 (25 October 2017)
|
73 |
+
|
74 |
+
* Change settings page function name for compatibility
|
75 |
+
* Allow the WP Remote API key to be updated from CLI
|
76 |
+
|
77 |
#### 2.8.1 (10 October 2017)
|
78 |
|
79 |
* Add link to clear API key from the plugin settings page.
|
wprp.admin.php
CHANGED
@@ -88,13 +88,13 @@ register_uninstall_hook(WPRP_PLUGIN_BASE, 'delete_wpr_options');
|
|
88 |
/**
|
89 |
* Clear API key from plugin page setting link
|
90 |
*/
|
91 |
-
function
|
92 |
$settings_link = '<a href="options-general.php?page=wpremote">' . __( 'Clear API key' ) . '</a>';
|
93 |
array_unshift($links, $settings_link);
|
94 |
return $links;
|
95 |
}
|
96 |
|
97 |
-
add_filter( "plugin_action_links_" . WPRP_PLUGIN_BASE, '
|
98 |
|
99 |
/**
|
100 |
* Register WPR Pages
|
88 |
/**
|
89 |
* Clear API key from plugin page setting link
|
90 |
*/
|
91 |
+
function wprp_plugin_add_settings_link( $links ) {
|
92 |
$settings_link = '<a href="options-general.php?page=wpremote">' . __( 'Clear API key' ) . '</a>';
|
93 |
array_unshift($links, $settings_link);
|
94 |
return $links;
|
95 |
}
|
96 |
|
97 |
+
add_filter( "plugin_action_links_" . WPRP_PLUGIN_BASE, 'wprp_plugin_add_settings_link' );
|
98 |
|
99 |
/**
|
100 |
* Register WPR Pages
|