Changes between Initial Version and Version 1 of Ticket #40779
- Timestamp:
- 05/16/2017 02:52:51 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #40779 – Description
initial v1 1 1 A few `function_exists()` checks can be removed from `wp-db.php`, thanks to recent load order changes, probably nobody having looked in a while, and generally being afraid to break DB drop-ins: 2 2 3 All of these areahead of `require_wp_db()`:3 All of these functions are in files now loaded ahead of `require_wp_db()`: 4 4 5 * `function_exists('is_multisite')` (load.php) 6 * `function_exists('_deprecated_function')` (functions.php) 7 * `function_exists( 'mb_strlen' )` (compat.php) 8 * `mb_check_encoding()` could *maybe* be a new function in compat.php (it's used 3 times) 5 * `is_multisite` (load.php) 6 * `_deprecated_function` (functions.php) 7 * `mb_strlen` (compat.php) 8 9 Bonus: 10 11 * `mb_check_encoding()` could *maybe* be a new function in compat.php (it's used 3 times in core, using `@` or `function_exists`) 9 12 10 13 ---- 11 14 12 The only caveats are 10+ year-old HyperDB versions that do the old-school deep-integration thing, of directly including files – they'll need extra scrutiny.15 The only caveats are the installation process, and 10+ year-old HyperDB versions that do the old-school deep-integration thing, of directly including files – they'll need extra scrutiny.