markd33
Forum Replies Created
-
These look like false positives to me from WordFence.
- This reply was modified 8 years, 2 months ago by markd33.
I highly recommend you update your changelog to reflect this.
That sounds good. I definitely think that is the best way to go. You could even do 11:59 and 59 seconds if people are really worried about 1 second.
Wouldn’t it make more sense to end the events at 11:59pm on the correct day instead of 12:am the following day?
I’m running into this same issue on a custom site and when you go back an edit an event it really throws things off.
Forum: Fixing WordPress
In reply to: Custom Post Type Saving as DraftI found a solution on my own to override the save function that fixes it but I still can’t figure out why it is even happening to begin with. This required adding this to the end of my save_post function.
// original publish override to fix a bug that was preventing speaker books from publishing on save if (isset($_REQUEST['original_publish']) && $_REQUEST['original_publish'] == 'Publish') : $poststatus = $_REQUEST['original_publish']; // // // unhook this function so it doesn't loop infinitely remove_action( 'save_post', 'cpt_save_post' ); // // // update the post, which calls save_post again wp_update_post( array( 'ID' => $post->ID, 'post_status' => $poststatus ) ); // // // re-hook this function add_action( 'save_post', 'cpt_save_post' ); endif;