Some email links point to wp-admin

This topic contains 1 reply and 2 voices, and was last updated by Nizam Uddin 10 years ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 2, 2014 at 1:35 am 17814
Nizam Uddin Hello, I created some projects in the frontend and some notification emails are linking to the wp-admin part of the site, instead of linking to the frontend. Project Invite email link (%PROJECT_URL%) - links to frontend - OK Messages email link (%MESSAGE_URL%) - links to frontend - OK Comment email link (%COMMENT_URL%) - links to backend (wp-admin) - NOT OK Where do I fix this? Thanks
April 2, 2014 at 12:27 pm 17836
Nizam Uddin Nizam Uddin

Thank you Roberto, just fixed the problem. Please wait for upcoming update. If don’t want to wait then go to line number 563 in frontend.php and replace the following code…


function form_actions() {
        if ( is_admin() && ! isset( $_POST['cpmf_url'] )) {
            return;
        }

        $form_actions = array('cpm_project_form', 'cpm_message_form', 'cpm_tasklist_form',
            'cpm_task_new_form', 'cpm_milestone_form', 'cpm_comment_form', 'cpm_project_duplicate');

        foreach ($form_actions as $action) {
            add_action( $action, array($this, 'form_hidden_input') );
        }
    }

Thank you…

Viewing 1 Posts - 1 through 1 (of 1 total)