GithubHelp home page GithubHelp logo

Comments (4)

mattoperry avatar mattoperry commented on May 28, 2024

I can't reproduce this. In fact, the "show more" button does indeed reveal extra CSS revisions for me when I follow your instructions. However, I discovered the following two problems in this area related to JetPack_Public_CSS::revisions_meta_box:

  1. The call to wp_revisions_to_keep on line 891 produces a PHP notice because $safecss_post is an array, but the function assumes an object. The solution is to either convert to an object before passing (ew) or to no longer use wp_revisions_to_keep here. I chose the latter option.
  2. The "Show more" link appears even if there are no additional revisions to show. That's a bit misleading so it should probably go away when all the revisions (up to max) are listed.

I fixed both of these issues, but it's unclear to me if/how these are related to the above behavior ... especially hard to say since I can't reproduce it.

Anyway patch to follow -- I hope this helps.

from jetpack.

blobaugh avatar blobaugh commented on May 28, 2024

@jeherve I am also unable to reproduce this. Maybe @mattoperry solved it with the other commit?

from jetpack.

jeherve avatar jeherve commented on May 28, 2024

The issue (and the notice) disappeared after applying your patch. Closing this issue. Thank you!

from jetpack.

mattoperry avatar mattoperry commented on May 28, 2024

No worries -- happy to take more issues -- just let me know.

from jetpack.

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.