|
@@ 80-85 (lines=6) @@
|
| 77 |
|
return; |
| 78 |
|
} |
| 79 |
|
// Install and activate Jetpack Version. |
| 80 |
|
if ( wp_verify_nonce( $_GET['_nonce'], 'activate_branch' ) && isset( $_GET['activate-branch'] ) && isset( $_GET['section'] ) ) { |
| 81 |
|
$branch = esc_html( $_GET['activate-branch'] ); |
| 82 |
|
$section = esc_html( $_GET['section'] ); |
| 83 |
|
|
| 84 |
|
Jetpack_Beta::install_and_activate( $branch, $section ); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
// Update to the latest version. |
| 88 |
|
if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) { |
|
@@ 88-93 (lines=6) @@
|
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
// Update to the latest version. |
| 88 |
|
if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) { |
| 89 |
|
$branch = esc_html( $_GET['update-branch'] ); |
| 90 |
|
$section = esc_html( $_GET['section'] ); |
| 91 |
|
|
| 92 |
|
Jetpack_Beta::update_plugin( $branch, $section ); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
// Toggle autoupdates. |
| 96 |
|
if ( self::is_toggle_action( 'autoupdates' ) ) { |