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
|
@@ 1160-1163 (lines=4) @@
|
| 1157 |
|
global $wpdb; |
| 1158 |
|
|
| 1159 |
|
// Switch DB table prefixes |
| 1160 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1161 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1162 |
|
} else { |
| 1163 |
|
$_blog_id = null; |
| 1164 |
|
} |
| 1165 |
|
|
| 1166 |
|
// Setup DB tables |
|
@@ 1239-1242 (lines=4) @@
|
| 1236 |
|
global $wpdb; |
| 1237 |
|
|
| 1238 |
|
// Switch DB table prefixes |
| 1239 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1240 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1241 |
|
} else { |
| 1242 |
|
$_blog_id = null; |
| 1243 |
|
} |
| 1244 |
|
|
| 1245 |
|
$api = pods_api(); |