Git Product home page Git Product logo

Comments (8)

yargevad avatar yargevad commented on August 19, 2024

Hi @xianx, what does your template code look like for that link?

from wordpress-sparkpost.

rajumsys avatar rajumsys commented on August 19, 2024

How you've used content in your template? If you want to substitute without escaping content, you need to use {{{content}}} (note 3 curly braces) instead of {{content}}.

from wordpress-sparkpost.

xianx avatar xianx commented on August 19, 2024

@yargevad I have already included screenshot http://prnt.sc/az7u4c

from wordpress-sparkpost.

yargevad avatar yargevad commented on August 19, 2024

Let me explain more clearly. That screenshot shows a rendered template. I'm interested in what the source of your template looks like, including all of the curly braces, like @rajumsys shows above.

from wordpress-sparkpost.

xianx avatar xianx commented on August 19, 2024

https://gist.github.com/xianx/74a1e8cdbd701c79f7ff576d26514b2c

from wordpress-sparkpost.

xianx avatar xianx commented on August 19, 2024

I have just tested that when ever 2 curly bracket is using Forget link is sending but link tracking and line breaks are not working.

from wordpress-sparkpost.

davekiss avatar davekiss commented on August 19, 2024

I'm having this issue as well. My template is using the triple braced {{{content}}} - I think it has something to do with the formatting of the WordPress password reset message that is generated by WP core, shown here:

https://github.com/WordPress/WordPress/blob/283c367df717de4757910ebc906886f8f6f5154e/wp-login.php#L333-L338

My temporary work-around is to override that message with a custom filter:

/* Edit the Lost Password Email */
function sparkpost_retrieve_password_message( $message, $key, $user_login, $user_data ) {
  $message = __('Someone has requested a password reset for the following account:') . "<br /><br />";
  $message .= network_home_url( '/' ) . "<br /><br />";
  $message .= sprintf(__('Username: %s'), $user_login) . "<br /><br />";
  $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "<br /><br />";
  $message .= __('To reset your password, visit the following address:') . "<br /><br />";
  $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login');
  return $message;
}

add_filter('retrieve_password_message', 'sparkpost_retrieve_password_message', 10, 4);

from wordpress-sparkpost.

dws122 avatar dws122 commented on August 19, 2024

@rajumsys this appears to still an issue in 3.0.1, especially with gmail clients or Google Apps for work.

Can this be included in the 3.1 release?

from wordpress-sparkpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.