if (isset($_POST['acc_exc_mod_doit'])) {
     $s_exception_defs['msg'] = get_request_data('def_exc_msg');
     if (modify_exception($s_exception_defs) == TRUE) {
         $s_exception_defs = array();
         $s_exceptions_valid = FALSE;
     } else {
         $exc_mod_flag = TRUE;
     }
 }
 // creating or modifying exception was canceled
 if (isset($_POST['acc_exc_create_cancel']) || isset($_POST['acc_exc_mod_cancel'])) {
     $s_exception_defs = array();
 }
 // init the array s_exceptions
 if ($s_exceptions_valid == FALSE || isset($_POST['acc_exc_reload'])) {
     $s_exceptions = get_exceptions($s_exceptions_order, $s_exceptions_dir);
     $s_exceptions_valid = TRUE;
 }
 // the Drop button on the udf panel was pushed
 if (isset($_POST['acc_exc_del']) && isset($_POST['acc_exc_del_name']) && $_POST['acc_exc_del_name'] != '') {
     $dname = $_POST['acc_exc_del_name'];
     $deps = get_dependencies(OT_EXCEPTION, $dname);
     if (count($deps) > 0) {
         $message = sprintf($MESSAGES['HAVE_DEPENDENCIES'], $acc_strings['Exception'], $dname, dependencies_string($deps));
     } else {
         if ($s_cust['askdel'] == TRUE) {
             $s_confirmations['exc'] = array('msg' => sprintf($MESSAGES['CONFIRM_EXC_DELETE'], $dname), 'obj' => $dname);
         } else {
             drop_exception($dname);
         }
     }
function is_excluded($file)
{
    global $wp_styles;
    global $wp_scripts;
    $exceptions = get_exceptions();
    if (is_string($file) && isset($wp_scripts->registered[$file])) {
        $filename = $file;
        $file = $wp_scripts->registered[$file];
        //~ unset($wp_scripts->registered[$filename]->deps);
    } elseif (is_string($file) && isset($wp_styles->registered[$file])) {
        $filename = $file;
        $file = $wp_styles->registered[$file];
        //~ unset($wp_styles->registered[$filename]->deps);
    } elseif (is_string($file)) {
        if (is_array($wp_scripts->queue)) {
            foreach ($wp_scripts->queue as $q) {
                if (strpos($wp_scripts->registered[$q]->src, $file) !== FALSE) {
                    $file = $wp_scripts->registered[$q];
                    //~ unset($wp_scripts->registered[$q]->deps);
                    break;
                }
            }
        }
        if (is_array($wp_styles->queue)) {
            foreach ($wp_styles->queue as $q) {
                if (strpos($wp_styles->registered[$q]->src, $file) !== FALSE) {
                    $file = $wp_styles->registered[$q];
                    //~ unset($wp_styles->registered[$q]->deps);
                    break;
                }
            }
        }
    }
    foreach ($exceptions as $ex) {
        if ($file->handle == $ex || strpos($ex, '.') !== FALSE && strpos($file->src, $ex) !== FALSE) {
            return true;
        }
    }
    return false;
}