Make WordPress Core

Ticket #63910: 63910.patch

File 63910.patch, 478 bytes (added by rishabhwp, 15 months ago)
  • src/wp-includes/ms-blogs.php

    diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php
    index 0be865fd87..216cf56fe0 100644
    a b function restore_current_blog() {  
    696696 * @param int $old_site_id Old site ID.
    697697 */
    698698function wp_switch_roles_and_user( $new_site_id, $old_site_id ) {
     699        $new_site_id = (int) $new_site_id;
     700        $old_site_id = (int) $old_site_id;
     701
    699702        if ( $new_site_id === $old_site_id ) {
    700703                return;
    701704        }