Code Duplication    Length = 12-13 lines in 2 locations

src/wp-admin/network/themes.php 1 location

@@ 195-207 (lines=13) @@
192
				's' => $s
193
			), network_admin_url( 'themes.php' ) ) );
194
			exit;
195
		default:
196
			$themes = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
197
			if ( empty( $themes ) ) {
198
				wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) );
199
				exit;
200
			}
201
			check_admin_referer( 'bulk-themes' );
202
203
			/** This action is documented in wp-admin/network/site-themes.php */
204
			$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes );
205
206
			wp_safe_redirect( $referer );
207
			exit;
208
	}
209
210
}

src/wp-admin/plugins.php 1 location

@@ 368-379 (lines=12) @@
365
			}
366
			break;
367
368
		default:
369
			if ( isset( $_POST['checked'] ) ) {
370
				check_admin_referer('bulk-plugins');
371
				$plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
372
				$sendback = wp_get_referer();
373
374
				/** This action is documented in wp-admin/edit-comments.php */
375
				$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );
376
				wp_safe_redirect( $sendback );
377
				exit;
378
			}
379
			break;
380
	}
381
382
}