Rimuovere da Eclipse la validazione dell’HTML

Linux, PHP, WordPress Soft! Nessun Commento »


A volte è utile non avere un controllo dell’HTML su Eclipse. Ecco come fare:

Eclipse -> Preferenze -> Validation

Personalizzato per ogni progetto:

Properties -> Validation

disabilita tutti i check che riguardano HTML.

Eclipse kepler not link (ctrl + arrow over a class) method or properties class by PDT (PHP)

Eclipse, PHP, WordPress oscar Nessun Commento »

I found out why in kepler don’t work fine (into some class) open a method or properties from another class with command CTRL + arrow “over” a class. I reinstall 1000 times PDT but nothing, the bug not fixed.

It’s sufficient look the source code of the class and update the code from “throw (new Exception(”));” to “throw new Exception(”);”, that is you must delete the “parentheses” before the word “new”. I don’t know why, but now kepler work fine.

bye

Forza WordPress ad utilizzare l’ultima versione di jQuery

WordPress Soft! Nessun Commento »


Se hai wp 2.9.x oppure 3.x puoi tranquillamente utilizzare il codice e scriverlo nello script “function.php” del tuo tema:

function current_jquery($version) {
        global $wp_scripts;
        if ( ( version_compare($version, $wp_scripts -> registered[jquery] -> ver) == 1 ) && !is_admin() ) {
                wp_deregister_script('jquery'); 
 
                wp_register_script('jquery',
                        'http://ajax.googleapis.com/ajax/libs/jquery/'.$version.'/jquery.min.js',
                        false, $version);
        }
}
 
add_action( 'wp_head', current_jquery( '1.8.0' ) ); 

Leggi il resto di questo articolo »

Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi