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
|
@@ 1090-1093 (lines=4) @@
|
| 1087 |
|
global $wpdb; |
| 1088 |
|
|
| 1089 |
|
// Switch DB table prefixes |
| 1090 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1091 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1092 |
|
} else { |
| 1093 |
|
$_blog_id = null; |
| 1094 |
|
} |
| 1095 |
|
|
| 1096 |
|
// Setup DB tables |
|
@@ 1169-1172 (lines=4) @@
|
| 1166 |
|
global $wpdb; |
| 1167 |
|
|
| 1168 |
|
// Switch DB table prefixes |
| 1169 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1170 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1171 |
|
} else { |
| 1172 |
|
$_blog_id = null; |
| 1173 |
|
} |
| 1174 |
|
|
| 1175 |
|
$api = pods_api(); |