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
|
@@ 1044-1047 (lines=4) @@
|
1041 |
|
global $wpdb; |
1042 |
|
|
1043 |
|
// Switch DB table prefixes |
1044 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
1045 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
1046 |
|
} else { |
1047 |
|
$_blog_id = null; |
1048 |
|
} |
1049 |
|
|
1050 |
|
// Setup DB tables |
|
@@ 1121-1124 (lines=4) @@
|
1118 |
|
global $wpdb; |
1119 |
|
|
1120 |
|
// Switch DB table prefixes |
1121 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
1122 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
1123 |
|
} else { |
1124 |
|
$_blog_id = null; |
1125 |
|
} |
1126 |
|
|
1127 |
|
$api = pods_api(); |