mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2025-10-29 17:50:37 +00:00
Initial commit. State 04.2021.
This commit is contained in:
12
wp-content/plugins/wpclef/includes/lib/symlink-fix.php
Normal file
12
wp-content/plugins/wpclef/includes/lib/symlink-fix.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
function plugin_symlink_fix( $url, $path, $plugin ) {
|
||||
// Do it only for this plugin
|
||||
|
||||
if ( strstr( $plugin, 'wpclef' ) ) {
|
||||
return str_replace( dirname( $plugin ), '/' . basename( dirname( $plugin ) ), $url );
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
add_filter( 'plugins_url', 'plugin_symlink_fix', 10, 3 );
|
||||
Reference in New Issue
Block a user