Skip to content

duplicate processing within multisite-post-duplicator #69

@Jon007

Description

@Jon007

function mpd_duplicate_over_multisite()
contains the line:
$post_id = wp_insert_post( $mdp_post );

which is fine, except that the save post is hooked by:
add_action('save_post', 'mpd_persist_post', 100);

since mpd_persist_post needs to perform almost identical actions to mpd_duplicate_over_multisite (if there is a link) then these actions are duplicated, causing slowness and further problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions