Changes between Version 4 and Version 5 of Ticket #37699, comment 60
- Timestamp:
- 09/01/2016 07:05:18 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37699, comment 60
v4 v5 3 3 1. There is no way to type the return value thus coding with an IDE like PhpStorm will result in code that is littered with flagged unresolvable references. 4 4 5 2. Th is simple issue that `WP::get('wdpb')` won't get causeduring development in an IDE like PhpStorm because it can't inspect the string and validate it.5 2. The simple issue that `WP::get('wdpb')` won't get caught during development in an IDE like PhpStorm because it can't inspect the string and validate it. 6 6 7 7 Propose instead using `WP::<global>()` and `WP::set_<global>(<new_value>)` as in `WP::wpdb()` and `WP::set_wpdb($new_wpdb)`.