Make WordPress Core

Ticket #22896: 22896.patch

File 22896.patch, 561 bytes (added by SergeyBiryukov, 12 years ago)

With proper formatting

  • wp-includes/functions.wp-scripts.php

     
    111111                $wp_scripts = new WP_Scripts();
    112112        }
    113113
    114         $wp_scripts->remove( $handle );
     114        $_handle = explode( '?', $handle );
     115        if ( is_admin() && 'jquery' == $_handle[0] )
     116                _doing_it_wrong( __FUNCTION__, __( 'jQuery may not be deregistered in the admin.' ), '3.6' );
     117        else
     118                $wp_scripts->remove( $handle );
    115119}
    116120
    117121/**