Home › Forums › ACF PRO › ACF 5 PRO Wonky Admin Styles › Reply To: ACF 5 PRO Wonky Admin Styles
So playing around with ‘advanced-custom-fields-pro/acf.php’ I noticed dir is plugin_dir_url which makes ‘wp-content/plugins/’
Looking in ACF4 ‘advanced-custom-fields-pro/acf.php’ I see the function helpers_get_dir( $file ) which locates the proper directory and fixes win issues.
Adding function helpers_get_dir() to ‘advanced-custom-fields-pro/acf.php’ and replacing:
‘dir’ => plugin_dir_url( __FILE__ ),
with
‘dir’ => helpers_get_dir(__FILE__ ),
Appears to fix the situation.
Obviously, this isn’t a proper fix. Just a direction to the issue.
-WilliamH
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.