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
|
@@ 1113-1116 (lines=4) @@
|
| 1110 |
|
global $wpdb; |
| 1111 |
|
|
| 1112 |
|
// Switch DB table prefixes |
| 1113 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1114 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1115 |
|
} else { |
| 1116 |
|
$_blog_id = null; |
| 1117 |
|
} |
| 1118 |
|
|
| 1119 |
|
// Setup DB tables |
|
@@ 1192-1195 (lines=4) @@
|
| 1189 |
|
global $wpdb; |
| 1190 |
|
|
| 1191 |
|
// Switch DB table prefixes |
| 1192 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1193 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1194 |
|
} else { |
| 1195 |
|
$_blog_id = null; |
| 1196 |
|
} |
| 1197 |
|
|
| 1198 |
|
$api = pods_api(); |