[wp-trac] [WordPress Trac] #42804: type is not required in HTML5

WordPress Trac noreply at wordpress.org
Wed Sep 18 22:00:10 UTC 2019


#42804: type is not required in HTML5
-------------------------------------------------+-------------------------
 Reporter:  sasiddiqui                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reopened
 Priority:  low                                  |   Milestone:  5.3
Component:  Script Loader                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch needs-dev-   |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------
Changes (by azaozz):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Getting `Fatal error: Uncaught Error: Call to undefined function
 current_theme_supports() in wp-includes\class.wp-scripts.php:145` in load-
 scripts.php.

 `load-scripts.php` and `load-styles.php` do not load all of WP. They use
 sctipt-loader only as a whitelist for scripts and styles.

 We can add a stub or a `function_exists()` for `current_theme_supports()`
 but then this (minor) enhancement becomes somewhat redundant? Also it
 seems it has effect only when outputting individual scripts and styles in
 wp-admin, i.e. when `SCRIPT_DEBUG` is true.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42804#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list