sql/upgrade/PodsUpgrade.php 1 location
|
@@ 47-50 (lines=4) @@
|
44 |
|
global $wpdb; |
45 |
|
|
46 |
|
// Switch DB table prefixes |
47 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) |
48 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
49 |
|
else |
50 |
|
$_blog_id = null; |
51 |
|
|
52 |
|
$pods_version = get_option( 'pods_version' ); |
53 |
|
|
classes/PodsInit.php 2 locations
|
@@ 1153-1156 (lines=4) @@
|
1150 |
|
global $wpdb; |
1151 |
|
|
1152 |
|
// Switch DB table prefixes |
1153 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
1154 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
1155 |
|
} else { |
1156 |
|
$_blog_id = null; |
1157 |
|
} |
1158 |
|
|
1159 |
|
// Setup DB tables |
|
@@ 1232-1235 (lines=4) @@
|
1229 |
|
global $wpdb; |
1230 |
|
|
1231 |
|
// Switch DB table prefixes |
1232 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
1233 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
1234 |
|
} else { |
1235 |
|
$_blog_id = null; |
1236 |
|
} |
1237 |
|
|
1238 |
|
$api = pods_api(); |