@@ 66-90 (lines=25) @@ | ||
63 | WP_Theme::network_disable_theme( (array) $themes ); |
|
64 | wp_safe_redirect( add_query_arg( 'disabled', count( $themes ), $referer ) ); |
|
65 | exit; |
|
66 | case 'update-selected' : |
|
67 | check_admin_referer( 'bulk-themes' ); |
|
68 | ||
69 | if ( isset( $_GET['themes'] ) ) |
|
70 | $themes = explode( ',', $_GET['themes'] ); |
|
71 | elseif ( isset( $_POST['checked'] ) ) |
|
72 | $themes = (array) $_POST['checked']; |
|
73 | else |
|
74 | $themes = array(); |
|
75 | ||
76 | $title = __( 'Update Themes' ); |
|
77 | $parent_file = 'themes.php'; |
|
78 | ||
79 | require_once(ABSPATH . 'wp-admin/admin-header.php'); |
|
80 | ||
81 | echo '<div class="wrap">'; |
|
82 | echo '<h1>' . esc_html( $title ) . '</h1>'; |
|
83 | ||
84 | $url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) )); |
|
85 | $url = wp_nonce_url($url, 'bulk-update-themes'); |
|
86 | ||
87 | echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>"; |
|
88 | echo '</div>'; |
|
89 | require_once(ABSPATH . 'wp-admin/admin-footer.php'); |
|
90 | exit; |
|
91 | case 'delete-selected': |
|
92 | if ( ! current_user_can( 'delete_themes' ) ) { |
|
93 | wp_die( __('Sorry, you are not allowed to delete themes for this site.') ); |
@@ 120-146 (lines=27) @@ | ||
117 | wp_redirect( self_admin_url("plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s") ); |
|
118 | exit; |
|
119 | ||
120 | case 'update-selected' : |
|
121 | ||
122 | check_admin_referer( 'bulk-plugins' ); |
|
123 | ||
124 | if ( isset( $_GET['plugins'] ) ) |
|
125 | $plugins = explode( ',', $_GET['plugins'] ); |
|
126 | elseif ( isset( $_POST['checked'] ) ) |
|
127 | $plugins = (array) $_POST['checked']; |
|
128 | else |
|
129 | $plugins = array(); |
|
130 | ||
131 | $title = __( 'Update Plugins' ); |
|
132 | $parent_file = 'plugins.php'; |
|
133 | ||
134 | wp_enqueue_script( 'updates' ); |
|
135 | require_once(ABSPATH . 'wp-admin/admin-header.php'); |
|
136 | ||
137 | echo '<div class="wrap">'; |
|
138 | echo '<h1>' . esc_html( $title ) . '</h1>'; |
|
139 | ||
140 | $url = self_admin_url('update.php?action=update-selected&plugins=' . urlencode( join(',', $plugins) )); |
|
141 | $url = wp_nonce_url($url, 'bulk-update-plugins'); |
|
142 | ||
143 | echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>"; |
|
144 | echo '</div>'; |
|
145 | require_once(ABSPATH . 'wp-admin/admin-footer.php'); |
|
146 | exit; |
|
147 | ||
148 | case 'error_scrape': |
|
149 | if ( ! current_user_can('activate_plugins') ) |