) { if ( ! is_array( $handles ) ) { $handles = array( $handles ); } $minify = Utils::get_module( 'minify' ); $options = $minify->get_options(); foreach ( $handles as $handle ) { $this->errors[ $type ][ $handle ] = array( 'code' => $code, 'error' => $message, 'disable' => $disable, ); if ( ! empty( $actions ) && is_array( $actions ) ) { if ( in_array( 'minify', $actions, true ) && ! in_array( $handle, $options['dont_minify'][ $type ], true ) ) { $options['dont_minify'][ $type ][] = $handle; } if ( in_array( 'combine', $actions, true ) && ! in_array( $handle, $options['dont_combine'][ $type ], true ) ) { $options['dont_combine'][ $type ][] = $handle; } if ( in_array( 'nocdn', $actions, true ) && ! in_array( $handle, $options['nocdn'][ $type ], true ) ) { $options['nocdn'][ $type ][] = $handle; } } } $minify->update_options( $options ); update_option( 'wphb-minification-errors', $this->errors ); } }