bug updating draft item
-
I find a bug when updating draft item, here is my patch :
in wp-content/plugins/csv-import-export/includes/esb-cie-model.php line 165
/** * Check post by post slug and return valid post id */ function esb_cie_check_post_by_slug( $post_slug, $post_type = 'any', $post_status = 'any' ) { if( !empty( $post_slug ) ) { $args = array( 'post_type' => $post_type, 'name' => sanitize_title($post_slug), 'posts_per_page'=> 1, 'fields' => 'ids', 'post_status' => $post_status ); $post_ids = get_posts( $args ); return !empty( $post_ids ) && !empty( $post_ids['0'] ) ? $post_ids['0'] : 0; } else { return 0; } }enjoy!
The topic ‘bug updating draft item’ is closed to new replies.