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!
Make sure to register for tomorrow’s special ACF-focused edition of #BuildModeLive. Iain Poulson joins @hellosammunoz & @bgardner for a discussion about ACF’s roadmap and what’s in development. https://t.co/k93h4pYCae
— Advanced Custom Fields (@wp_acf) January 26, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.