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
|
@@ 1154-1157 (lines=4) @@
|
| 1151 |
|
global $wpdb; |
| 1152 |
|
|
| 1153 |
|
// Switch DB table prefixes |
| 1154 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1155 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1156 |
|
} else { |
| 1157 |
|
$_blog_id = null; |
| 1158 |
|
} |
| 1159 |
|
|
| 1160 |
|
// Setup DB tables |
|
@@ 1233-1236 (lines=4) @@
|
| 1230 |
|
global $wpdb; |
| 1231 |
|
|
| 1232 |
|
// Switch DB table prefixes |
| 1233 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1234 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1235 |
|
} else { |
| 1236 |
|
$_blog_id = null; |
| 1237 |
|
} |
| 1238 |
|
|
| 1239 |
|
$api = pods_api(); |