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
|
@@ 1148-1151 (lines=4) @@
|
| 1145 |
|
global $wpdb; |
| 1146 |
|
|
| 1147 |
|
// Switch DB table prefixes |
| 1148 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1149 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1150 |
|
} else { |
| 1151 |
|
$_blog_id = null; |
| 1152 |
|
} |
| 1153 |
|
|
| 1154 |
|
// Setup DB tables |
|
@@ 1227-1230 (lines=4) @@
|
| 1224 |
|
global $wpdb; |
| 1225 |
|
|
| 1226 |
|
// Switch DB table prefixes |
| 1227 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1228 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1229 |
|
} else { |
| 1230 |
|
$_blog_id = null; |
| 1231 |
|
} |
| 1232 |
|
|
| 1233 |
|
$api = pods_api(); |