Relative URLs being broke
-
I’ve a plugin which includes static files this way:
wp_enqueue_style('login-notification', plugin_dir_url(__DIR__) . 'style/login-notification.css', '', '1.0.0');
domain_mapping_plugins_uri
function keeps breaking the URLs. Thesubstr( $full_url, stripos( $full_url, PLUGINDIR ) - 1 )
part changes/wp-content/mu-plugins/seravo-plugin
inton
. So instead ofhttps://www.example.org/wp-content/mu-plugins/seravo-plugin/style/login-notifications.css
I’m gettinghttps://www.example.orgn/style/login-notification.css
(notice then
on the domain) which obviously doesn’t work.I’ve made sure it’s that function which makes the change.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Relative URLs being broke’ is closed to new replies.