WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2016 12:53:06 PM (4 years ago)
Author:
ocean90
Message:

Resource Hints: Increase priority of wp_resource_hints() so hints get printed before scripts and styles.

Also run wp_resource_hints() on the login screen and in the customizer.

Props swissspidy.
Fixes #37317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin-filters.php

    r37978 r38046  
    4545
    4646// Prerendering.
    47 add_filter( 'admin_head', 'wp_resource_hints' );
     47if ( ! is_customize_preview() ) {
     48    add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
     49}
    4850
    4951add_action( 'admin_print_scripts-post.php',     'wp_page_reload_on_back_button_js' );
Note: See TracChangeset for help on using the changeset viewer.