WordPress.org

Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #37699, comment 60


Ignore:
Timestamp:
09/01/2016 07:05:18 PM (3 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37699, comment 60

    v4 v5  
    331. 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.
    44
    5 2. This simple issue that  `WP::get('wdpb')` won't get cause during development in an IDE like PhpStorm because it can't inspect the string and validate it.
     52. 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.
    66
    77Propose instead using `WP::<global>()` and `WP::set_<global>(<new_value>)` as in `WP::wpdb()` and `WP::set_wpdb($new_wpdb)`.