BuddyDev

Site Navigation

  • Menu
  • BuddyDev Logo
  • Blog
    • Recent Posts
    • BuddyPress
    • WordPress Multisite
    • WordPress
  • Plugins
    • Premium Plugins
    • Free Plugins
    • MediaPress
    • Suggest a Plugin
  • Themes
    • Premium Themes
    • Free Themes
    • Suggest a Theme
  • MediaPress
    • MediaPress
    • Addons
    • Documentation
    • Support
  • Support
    • Forum
    • Docs & Manuals
    • MediaPress Docs
    • Code Snippets
    • FAQ
    • Community
    • Contact
  • Services
    • BuddyPress Plugin Development
    • BuddyPress Plugin Customization
    • BuddyPress Website Troubleshooting
    • BuddyPress Custom Development
  • Pricing
    • Pricing
    • Membership FAQ
    • Refund Policy
    • Checkout
  • Register
  • Login
  • Profile picture of Henry

    Henry posted an update in the group BuddyDev Membership Faq/Support 11 years, 6 months ago

    Hi guys, I have a bug report for Simple Front End Post but not sure where to submit it? wp_insert_post() is used when editing a post which causes the post’s creation date to be overwritten. Shouldn’t wp_update_post() be used when editing posts and wp_insert_post() be used for new posts?

    • Profile picture of Henry
      Henry replied 11 years, 6 months ago

      Actually I see $post_data[‘ID’] = $post_id; is passing the post id into the $post_data array which gets sent to wp_insert_post() so am now not sure why the post’s creation date is being overwritten?

    • Profile picture of Henry
      Henry replied 11 years, 6 months ago

      Thought: Does a post modifed date need to be passed into the post_data array?

      • Profile picture of Brajesh Singh
        Brajesh Singh replied 11 years, 5 months ago

        Hi Henry, Sorry, I had no Idea you posted here. There is no need to pass modified date

    • Profile picture of Henry
      Henry replied 11 years, 6 months ago

      OK got a fix, please let me know if this is OK? http://pastebin.com/EXqUk8Kr

  • Resources
    • Free Buddypress Themes
    • Free Buddypress Plugins
    • Buddypress Premium Themes
    • Buddypress Premium Plugins
    • Blog
  • Support Center
    • Membership
    • Faq
    • Join
    • Terms & Conditions
    • Privacy Policy
    • Contact Us
    • Hire Us
  • Useful Links
    • Download BuddyPress
    • Download WordPress
    • BuddyPress Codex
    • WordPress Documentation
    • Our Documentation
  • Connect with Us
    • Connect with Brajesh

Copyright © 2009-2025 BuddyDev.com