20151126

带端口的网站地址导致Slider Revolution加载出错

Author:  WinkCategories:  XHTML/CSSNo Comments »

由于Slider Revolution插件的代码不够健壮,在使用带端口的网站地址时,库文件的解析地址出错,所以banner都会失效,具体导致问题的语句为:

$stripped_http = explode(':', RS_PLUGIN_URL);
echo 'jsFileLocation:"'. esc_attr( $stripped_http[1] .'public/assets/js/' ) .'",'."\n";

我懒,所以没强化,直接写死了地址修改就好了,更改方法为,将wp-content/plugins/revslider/includes/output.class.php文件中的
echo 'jsFileLocation:"'. esc_attr( $stripped_http[1] .'public/assets/js/' ) .'",'."\n";
一句改为直接指定地址:
echo 'jsFileLocation:"'. esc_attr( '//***IP ADRRESS***:***PORT***/wp-content/plugins/revslider/public/assets/js/' ) .'",'."\n";

搞定

You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Back to Page Top