Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #32557


Ignore:
Timestamp:
06/03/2015 01:31:00 AM (10 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32557

    • Property Component changed from General to Script Loader
  • Ticket #32557 – Description

    initial v2  
    99Below are the comparison of the same function under different version
    1010version 4.2.2:
     11{{{
    1112function wp_print_scripts( $handles = false ) {
    1213        /**
     
    3132        return wp_scripts()->do_items( $handles );
    3233}
    33 
     34}}}
    3435Version 4.0.2:
     36{{{
    3537function wp_print_scripts( $handles = false ) {
    3638        /**
     
    5759        return $wp_scripts->do_items( $handles );
    5860}
    59 
     61}}}
    6062under the condition if ( !$handles ), there's an else statement $wp_scripts = new WP_Scripts(); in version 4.0.2, however, version 4.2.2, this statement is missing.