Giter VIP home page Giter VIP logo

Comments (5)

grafikid avatar grafikid commented on July 4, 2024 2

thanks @elliotcondon, you save my day ! works fine ( we were stuck on Version 5.8.9, on one of our sites! ).

from acf.

elliotcondon avatar elliotcondon commented on July 4, 2024 1

Hi @Traxo7

Thanks for the code. I've just done some testing and can confirm the issue is due to "timing" changes in the way that JS data is localized on the page.

The simplest fix is to change your action from:
add_action('admin_head', [$this, 'init']);

to:
add_action('init', [$this, 'init']);

Please let me know if this is a possibility, or if there are other concerns.

from acf.

elliotcondon avatar elliotcondon commented on July 4, 2024

Hi @Traxo7

Thanks for the bug report. Can you please attach some example code to replicate the button issue?

from acf.

Traxo7 avatar Traxo7 commented on July 4, 2024

@elliotcondon

here are pastebins (note that some sensitive data is stripped):

php:
https://pastebin.com/TVrsxw4m
js:
https://pastebin.com/cEqEV0Dm

from acf.

Traxo7 avatar Traxo7 commented on July 4, 2024

Apologies for replying so late, but I haven't tested it yet.
I will post results when I'm able to test it, and delete this notice.

from acf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.