Changeset 54240 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 09/20/2022 02:49:25 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r54133 r54240 341 341 'site', 342 342 'sitemeta', 343 'sitecategories',344 343 'registration_log', 345 344 ); 345 346 /** 347 * List of deprecated WordPress Multisite global tables. 348 * 349 * @since 6.1.0 350 * 351 * @see wpdb::tables() 352 * @var string[] 353 */ 354 public $old_ms_global_tables = array( 'sitecategories' ); 346 355 347 356 /** … … 1124 1133 * 1125 1134 * @since 3.0.0 1135 * @since 6.1.0 `old` now includes deprecated multisite global tables only on multisite. 1126 1136 * 1127 1137 * @uses wpdb::$tables … … 1129 1139 * @uses wpdb::$global_tables 1130 1140 * @uses wpdb::$ms_global_tables 1141 * @uses wpdb::$old_ms_global_tables 1131 1142 * 1132 1143 * @param string $scope Optional. Possible values include 'all', 'global', 'ms_global', 'blog', … … 1160 1171 case 'old': 1161 1172 $tables = $this->old_tables; 1173 if ( is_multisite() ) { 1174 $tables = array_merge( $tables, $this->old_ms_global_tables ); 1175 } 1162 1176 break; 1163 1177 default:
Note: See TracChangeset
for help on using the changeset viewer.