[wp-trac] [WordPress Trac] #44382: Filter the subject within _wp_privacy_send_request_confirmation_notification

WordPress Trac noreply at wordpress.org
Fri Jun 15 23:24:56 UTC 2018


#44382: Filter the subject within
_wp_privacy_send_request_confirmation_notification
-----------------------------+-----------------------------
 Reporter:  garrett-eclipse  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hello,

 Looks like a filter was missed for the $subject found within
 _wp_privacy_send_request_confirmation_notification(). It should match the
 filter found in wp_send_user_request

 Reference -
 https://github.com/WordPress/WordPress/blob/3ee58b55b14683af4c568bce1845c37408c88fbb
 /wp-includes/user.php#L3400

 {{{
 /**
          * Filters the subject of the email sent when an account action is
 attempted.
          *
          * @since 4.9.6
          *
          * @param string $subject    The email subject.
          * @param string $blogname   The name of the site.
          * @param array  $email_data {
          *     Data relating to the account action email.
          *
          *     @type WP_User_Request $request     User request object.
          *     @type string          $email       The email address this
 is being sent to.
          *     @type string          $description Description of the
 action being performed so the user knows what the email is for.
          *     @type string          $confirm_url The link to click on to
 confirm the account action.
          *     @type string          $sitename    The site name sending
 the mail.
          *     @type string          $siteurl     The site URL sending the
 mail.
          * }
          */
         $subject = apply_filters( 'user_request_action_email_subject',
 $subject, $blogname, $email_data );
 }}}


 Cheers

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44382>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list