+
+ if ( isset( $_GET['plugins'] ) ) {
+ $plugins = explode( ',', $_GET['plugins'] );
+ } elseif ( isset( $_POST['checked'] ) ) {
+ $plugins = (array) $_POST['checked'];
+ } else {
+ wp_redirect('update-core.php');
+ exit;
+ }
+
+ $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
+ $url = wp_nonce_url($url, 'bulk-update-plugins');
+
+ $title = __('Update Plugins');
+
+ require_once('./admin-header.php');
+ echo '<div class="wrap">';
+ screen_icon('plugins');
+ echo '<h2>' . esc_html__('Update Plugins') . '</h2>';
+ echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";
+ echo '</div>';
+} elseif ( 'do-theme-upgrade' == $action ) {
+ check_admin_referer('upgrade-core');
+
+ if ( isset( $_GET['themes'] ) ) {
+ $themes = explode( ',', $_GET['themes'] );
+ } elseif ( isset( $_POST['checked'] ) ) {
+ $themes = (array) $_POST['checked'];
+ } else {
+ wp_redirect('update-core.php');
+ exit;
+ }
+
+ $url = 'update.php?action=update-selected-themes&themes=' . urlencode(implode(',', $themes));
+ $url = wp_nonce_url($url, 'bulk-update-themes');
+
+ $title = __('Update Themes');
+
+ require_once('./admin-header.php');
+ echo '<div class="wrap">';
+ screen_icon('themes');
+ echo '<h2>' . esc_html__('Update Themes') . '</h2>';
+ echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";
+ echo '</div>';