~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/class.wp-dependencies.php

  • Committer: Chris Jones
  • Date: 2010-01-19 13:17:33 UTC
  • Revision ID: cmsj@tenshu.net-20100119131733-rf31jv9k1v0xzo2h
[CJ] Import wordpress 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        }
172
172
 
173
173
        function dequeue( $handles ) {
174
 
                foreach ( (array) $handles as $handle )
175
 
                        unset( $this->queue[$handle] );
 
174
                foreach ( (array) $handles as $handle ) {
 
175
                        $handle = explode('?', $handle);
 
176
                        $key = array_search($handle[0], $this->queue);
 
177
                        if ( false !== $key ) {
 
178
                                unset($this->queue[$key]);
 
179
                                unset($this->args[$handle[0]]);
 
180
                        }
 
181
                }
176
182
        }
177
183
 
178
184
        function query( $handle, $list = 'registered' ) { // registered, queue, done, to_do