| | 43 | if ( ! in_array( $handle, $this->done, true ) && isset( $this->registered[$handle] ) && ! $this->registered[$handle]->src |
| | 44 | && ( $handle_data = $this->get_data( $handle, 'data' ) ) && ! empty( $this->registered[$handle]->deps ) ) { |
| | 45 | |
| | 46 | $first_dep = $this->registered[$handle]->deps[0]; |
| | 47 | // The first dependency data has priority over the handle data (printed after) |
| | 48 | if ( $first_dep_data = $this->get_data( $first_dep, 'data' ) ) |
| | 49 | $handle_data = "$handle_data\n$first_dep_data"; |
| | 50 | |
| | 51 | $this->add_data( $first_dep, 'data', $handle_data ); |
| | 52 | unset( $this->registered[$handle]->extra['data'] ); |
| | 53 | } |
| | 54 | } |
| | 55 | |
| | 56 | foreach( $this->to_do as $key => $handle ) { |