Skip to content

Commit

Permalink
Fixed: error create post
Browse files Browse the repository at this point in the history
  • Loading branch information
thanghv committed Oct 20, 2021
1 parent eb40fcc commit 1c2386f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/class-mainwp-child-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ private function create_post(
* @param string $post_category � Post categories.
* @param string $post_tags � Post tags.
*/
do_action( 'mainwp_before_post_update', $new_post, $post_custom, $post_category, $post_tags );
do_action( 'mainwp_before_post_update', $new_post, $post_custom, $post_category, $post_tags, $others );

$edit_post_id = 0;
$is_post_plus = false;

$this->set_post_custom_data( $new_post, $post_custom, $post_tags, $edit_post_id, $is_post_plus );
$this->set_post_custom_data( $new_post, $post_custom, $post_tags, $edit_post_id, $is_post_plus, $others );

require_once ABSPATH . 'wp-admin/includes/post.php';

Expand Down

0 comments on commit 1c2386f

Please sign in to comment.