PluginProbe
Patchstack – WordPress & Plugins Security / 2.3.6
Patchstack – WordPress & Plugins Security v2.3.6
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/multisite.php +2 -2 trunk2.3.6 View file →
@@ -43,14 +43,14 @@
43 43 * @return void
44 44 */
45 45 private function run_migration( ) {
46 46 // Must be a number.
47 - if ( ! isset( $_GET['site'] ) || ! is_scalar( $_GET['site'] ) || ! ctype_digit( (string) $_GET['site'] ) ) {
47 + if ( !ctype_digit( $_GET['site'] ) ) {
48 48 exit;
49 49 }
50 50
51 51 // Site must be valid and exists.
52 - $site = function_exists( 'get_site' ) ? get_site( $_GET['site'] ) : null;
52 + $site = get_site( $_GET['site'] );
53 53 if ( is_null( $site ) ) {
54 54 exit;
55 55 }
56 56