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
|
@@ 1071-1074 (lines=4) @@
|
| 1068 |
|
global $wpdb; |
| 1069 |
|
|
| 1070 |
|
// Switch DB table prefixes |
| 1071 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1072 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1073 |
|
} else { |
| 1074 |
|
$_blog_id = null; |
| 1075 |
|
} |
| 1076 |
|
|
| 1077 |
|
// Setup DB tables |
|
@@ 1150-1153 (lines=4) @@
|
| 1147 |
|
global $wpdb; |
| 1148 |
|
|
| 1149 |
|
// Switch DB table prefixes |
| 1150 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1151 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1152 |
|
} else { |
| 1153 |
|
$_blog_id = null; |
| 1154 |
|
} |
| 1155 |
|
|
| 1156 |
|
$api = pods_api(); |