Did you say in the Stack Overflow question that setting the content.mode to browse didn’t always work? I just uncommented that line and it appears to be working correctly for me now.
It’s line 1748 in the input.js file.
The only thing I’ve noticed where it stays with the upload view now is if you use the Add Image after switching views in the default Media Manager. The reason that’s happening is there just isn’t a call to set the view to “browse” in the .popup() method.
Thanks! I’ll let you know if I figure anything out.
Is it possible to get an un-minified version of the JS used to generate the modals? I’d like to take a shot at debugging this as I’ve done some work previously with customizing the Media Manager modal.
The issue only occurs if you first open the Media Manager in the standard WYSIWYG and select Upload Files, then close that Media Manager modal. Then, when you click the Edit pencil icon on an image field you see the same Upload Files modal screen rather than the Edit Image screen.
The error was on my end. Turns out the theme was creating the field directly in the functions.php file rather than through the ACF admin.
The version I was upgrading from is: 3.5.8.1
I’ve also found a group where the admin displays 3 as the total number of fields but when I go to edit that group, only one shows up (the only field of type Text). If I then clone that group and edit the new cloned version, I can see the other fields that were missing.
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.