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
|
@@ 1044-1047 (lines=4) @@
|
| 1041 |
|
global $wpdb; |
| 1042 |
|
|
| 1043 |
|
// Switch DB table prefixes |
| 1044 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1045 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1046 |
|
} else { |
| 1047 |
|
$_blog_id = null; |
| 1048 |
|
} |
| 1049 |
|
|
| 1050 |
|
// Setup DB tables |
|
@@ 1124-1127 (lines=4) @@
|
| 1121 |
|
global $wpdb; |
| 1122 |
|
|
| 1123 |
|
// Switch DB table prefixes |
| 1124 |
|
if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) { |
| 1125 |
|
switch_to_blog( pods_absint( $_blog_id ) ); |
| 1126 |
|
} else { |
| 1127 |
|
$_blog_id = null; |
| 1128 |
|
} |
| 1129 |
|
|
| 1130 |
|
$api = pods_api(); |