• Documentation
  • Support / Community
  • Products
    • Piklist Framework
    • Toolbox
    • Fields and Forms
    • WordPress Helpers
  • Log In
Piklist

Access your account, and post on the Support Forums

Retrieve Password | Register for account

Topic: All metadata saved for post revisions, not just piklist metadata

Support Home » Topics » Piklist » All metadata saved for post revisions, not just piklist metadata

Tagged: metadata, revisions

  • This topic has 0 replies, 1 voice, and was last updated 5 years, 9 months ago by torarnv.
Viewing 0 reply threads
  • Author
    Posts
    • May 14, 2016 at 11:59 am #6492
      torarnv
      Member

      Hi,

      I noticed Piklist_Revision hooks into save_post and saves metadata for new revisions, but there doesn’t seem to be any guard for which fields are saves, so I end up with changes to _edit_last, _edit_lock, _post_restored_from, etc in my revision diffs.

      Perhaps piklist should go the way of e.g. https://wordpress.org/plugins/wp-post-meta-revisions/ and only save a white-listed list of meta fields, possibly defaulted to the ones defined by the piklist-generated meta-boxes of that post type?

      I’m also seeing that all my meta-data fields are cleared when WP does an auto-save, is there a particular reason for the !wp_is_post_autosave($post_id) condition in save_post()?

      Thanks!

  • Author
    Posts
Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Log In

Log in / Register

Register for an Account

Stay up-to-date with Piklist

About

  • Philosophy
  • Privacy Policy
  • Terms of Service
  • Contact Us
  • Register for an account

Resources

  • Community Forums
  • Documentation
  • Tutorials
  • Get involved

Follow Piklist

  • Like us on Facebook
  • Follow us on Twitter
  • Connect on Google +
  • Watch on YouTube

Rate Piklist


If you love Piklist leave us a 5 Star review on WordPress.org.

News

  • Piklist v0.9.9.8 is now available

    September 30, 2019

    In October of 2015, we released v0.9.9 of Piklist. Your help in testing lead to seven(7) m ...

  • Piklist is now on HackerOne

    September 30, 2019

    We built Piklist from the ground up with security as our top priority. While we’ve t ...

  • Read all News
  • Powered by Piklist & WordPress © 2009 – 2022 Piklist LLC.
    This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.