Support » Plugin: Mailgun for WordPress » 1.5.8.3 broke the ‘mg_mutate_message_body’ filter

  • Resolved Cornel Raiu

    (@cornelraiu-1)


    In the new admin.php file you are loading dirname(__FILE__).'/wp-mail-api.php' which is the file having the filter.

    But in mailgun.php you are loading: dirname(__FILE__).'/includes/wp-mail-api.php' which does not have

    // Allow other plugins to apply body changes before writing the payload.
        $body = apply_filters('mg_mutate_message_body', $body);

    in it.

    I will revert to 1.5.8.2 until this is fixed because it is breaking my system ticket system.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Cornel Raiu

    (@cornelraiu-1)

    I added this on line 327 in /includes/wp-mail-api.php and it now works correctly:

    // Allow other plugins to apply body changes before writing the payload.
        $body = apply_filters('mg_mutate_message_body', $body);
    Plugin Author Mailgun

    (@mailgun)

    @cornelraiu-1 Thanks for the ticket, this definitely should not be happening. I will push a fix as the 1.5.8.4 tag.

    • This reply was modified 1 year ago by  Mailgun.
    Plugin Author Mailgun

    (@mailgun)

    Can you please try the 1.5.8.4 release from here?

    Cornel Raiu

    (@cornelraiu-1)

    Will do as soon as I am home.

    Plugin Author Mailgun

    (@mailgun)

    Thanks!

    Cornel Raiu

    (@cornelraiu-1)

    It appears to be working.

    Thanks for the quick intervention. Looking forward to having the update available in WP Repo.

    mmirus

    (@mmirus)

    This fixed the same issue for me, as well. Thanks for the quick patch!

    Plugin Author Mailgun

    (@mailgun)

    @mmirus @cornelraiu-1 Thanks for testing! I’ve just released 1.5.8.4 to the WP repo.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘1.5.8.3 broke the ‘mg_mutate_message_body’ filter’ is closed to new replies.