[wp-trac] [WordPress Trac] #35781: Incorrect use of PHP method compact

WordPress Trac noreply at wordpress.org
Tue Feb 9 09:11:23 UTC 2016


#35781: Incorrect use of PHP method compact
--------------------------+-----------------------------
 Reporter:  maweder       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Mail          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is a follow-up to #18926.

 {{{#!php
 $mail_error_data = compact( 'to', 'subject', 'message', $headers,
 $attachments );
 }}}

 instead of ...

 {{{#!php
 $mail_error_data = compact( $to, $subject, $message, $headers,
 $attachments );
 }}}

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


More information about the wp-trac mailing list