I installed the plugin normally through WordPress dashboard. I reinstalled it again but no luck.
And you’re right. The issue is that it is somehow sanitizing the URL by converting ‘ to & #039; and space to %20.
../js/ad-blocking-advisor.js'%20defer%20onload=''
From the source code of plugin I can see you’re using esc_url() function. Would that be causing the issue?
wp_register_script( "aba_script", esc_url( plugin_dir_url( __FILE__ ) . 'js/ad-blocking-advisor.js' ), array( 'jquery' ) );
I think you need to remove last ‘ inside esc_url(). Something like
'js/ad-blocking-advisor.js )',
This one was coming fine –
echo '<img src="' . plugin_dir_url( __FILE__ ) . 'images/1px-transparent.png" alt="">';
<div class="footer_ad"><img src="https://www.techiedelight.com/wp-content/plugins/ad-blocking-advisor/images/1px-transparent.png" alt="" style="display: none !important;"></div>
-
This reply was modified 7 years, 3 months ago by
coolph.
-
This reply was modified 7 years, 3 months ago by
coolph.
-
This reply was modified 7 years, 3 months ago by
coolph.