@@ 87-92 (lines=6) @@ | ||
84 | return; |
|
85 | } |
|
86 | // Install and activate Jetpack Version. |
|
87 | if ( wp_verify_nonce( $_GET['_nonce'], 'activate_branch' ) && isset( $_GET['activate-branch'] ) && isset( $_GET['section'] ) ) { |
|
88 | $branch = esc_html( $_GET['activate-branch'] ); |
|
89 | $section = esc_html( $_GET['section'] ); |
|
90 | ||
91 | Utils::install_and_activate( $branch, $section ); |
|
92 | } |
|
93 | ||
94 | // Update to the latest version. |
|
95 | if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) { |
|
@@ 95-100 (lines=6) @@ | ||
92 | } |
|
93 | ||
94 | // Update to the latest version. |
|
95 | if ( wp_verify_nonce( $_GET['_nonce'], 'update_branch' ) && isset( $_GET['update-branch'] ) && isset( $_GET['section'] ) ) { |
|
96 | $branch = esc_html( $_GET['update-branch'] ); |
|
97 | $section = esc_html( $_GET['section'] ); |
|
98 | ||
99 | Utils::update_plugin( $branch, $section ); |
|
100 | } |
|
101 | ||
102 | // Toggle autoupdates. |
|
103 | if ( self::is_toggle_action( 'autoupdates' ) ) { |