/**
 * Check whether a script has been added to the queue.
 *
 * @global ASC_Scripts $asc_scripts The ASC_Scripts object for printing scripts.
 *
 * @since 2.8.0
 * @since 3.5.0 'enqueued' added as an alias of the 'queue' list.
 *
 * @param string $handle Name of the script.
 * @param string $list   Optional. Status of the script to check. Default 'enqueued'.
 *                       Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
 * @return bool Whether the script script is queued.
 */
function asc_script_is($handle, $list = 'enqueued')
{
    global $asc_scripts;
    if (!is_a($asc_scripts, 'ASC_Scripts')) {
        if (!did_action('init')) {
            _doing_it_wrong(__FUNCTION__, sprintf(__('Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.'), '<code>asc_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>'), '3.3');
        }
        $asc_scripts = new ASC_Scripts();
    }
    return (bool) $asc_scripts->query($handle, $list);
}
/**
 * Prints the script queue in the HTML head on admin pages.
 *
 * Postpones the scripts that were queued for the footer.
 * print_footer_scripts() is called in the footer to print these scripts.
 *
 * @since 2.8.0
 *
 * @see asc_print_scripts()
 */
function print_head_scripts()
{
    global $asc_scripts, $concatenate_scripts;
    if (!did_action('asc_print_scripts')) {
        /** This action is documented in functions.asc-scripts.php */
        do_action('asc_print_scripts');
    }
    if (!is_a($asc_scripts, 'ASC_Scripts')) {
        $asc_scripts = new ASC_Scripts();
    }
    script_concat_settings();
    $asc_scripts->do_concat = $concatenate_scripts;
    $asc_scripts->do_head_items();
    /**
     * Filter whether to print the head scripts.
     *
     * @since 2.8.0
     *
     * @param bool $print Whether to print the head scripts. Default true.
     */
    if (apply_filters('print_head_scripts', true)) {
        _print_scripts();
    }
    $asc_scripts->reset();
    return $asc_scripts->done;
}