ajax.googleapis替换为国内源cdnjs.net(非360)

原理即是ajax.googleapis.com/ajax/libs 替换为 libs.cdnjs.net

1、找出含有googleapi的文件
grep -R ajax.google www.mysite.com/

2、比如会有script-loader.php和pagebar_options.php,使用sed替换:
sed -i ‘s/ajax.googleapis.com\/ajax\/libs/libs.cdnjs.net/’ ./mysite.com/wp-includes/script-loader.php
sed -i ‘s/ajax.googleapis.com\/ajax\/libs/libs.cdnjs.net/’ ./mysite.com/wp-content/plugins/pagebar/pagebar_options.php