[wp-trac] [WordPress Trac] #39702: Minor typo in wp_mail function

WordPress Trac noreply at wordpress.org
Thu Jan 26 14:39:40 UTC 2017


#39702: Minor typo in wp_mail function
--------------------------+-----------------------------
 Reporter:  reidbusi      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Mail          |    Version:  4.7.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 While working on a plugin, I have discovered that wp_mail calls:

 \wp-includes\pluggable.php(453):
 {{{#!php
 <?php
 $phpmailer->AddAttachment($attachment);
 }}}

 Where the method in the class is...
 \wp-includes\class-phpmailer(2506):
 {{{#!php
 <?php
 public function addAttachment($path, $name = '', $encoding = 'base64',
 $type = '', $disposition = 'attachment')
 }}}

 I note that PHP function names are case insensitive:
  '''Note:''' Function names are case-insensitive, though it is usually
 good form to call functions as they appear in their declaration.
 [http://php.net/manual/en/functions.user-defined.php User-defined
 functions]

 So, this does not affect anything really, other than my OCD. Do with it as
 you will.

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


More information about the wp-trac mailing list