wordpress

lazy-result.js ReferenceError: Promise is not defined

[code lang="javascript"] node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined [/code] When I install the FoundationPress, after I run gulp build I saw this message, this is because the node version problem. the have mention in this post https://github.com/postcss/postcss-nested/issues/30 Solution [code lang="shell"] vim node_modules/postcss/lib/lazy-result.js [/code] Put this to the

lazy-result.js ReferenceError: Promise is not defined Read More »

Remove WordPress Malware using Linux Shell Console

I’ve a lot of wordpress sites, recently few of my old sites infected malware, and those spammer using few of my sites to spam email. I would like to share the way I fix this. Most of the spammer look for the 777 path, most properly in /wp-content/uploads/ So I try to scan all the php files that they upload there with date. find ./public_html/wp-content/uploads/ -type f -name ‘*.php’ -printf ‘%TY-%Tm-%Td %TT %p\n’ | sort Then I found these 2015-10-16 12:25:01 ./wp-content/uploads/2013/05/blog84.p[…]

Remove WordPress Malware using Linux Shell Console Read More »

How to remove ver from js and css in WordPress ?

Remove the ver=date behind the JS and CSS in wordpress. [php] // Load in any own plugin function juz_remove_wp_ver_css_js( $src ) { if ( strpos( $src, ‘ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); add_filter( ‘script_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); [/php]

How to remove ver from js and css in WordPress ? Read More »