Make WordPress Core

Ticket #39702: 39702.diff

File 39702.diff, 1.0 KB (added by Soean, 8 years ago)

Changes methods form PascalCase to camelCase

  • src/wp-includes/pluggable.php

     
    450450        // Set custom headers
    451451        if ( !empty( $headers ) ) {
    452452                foreach ( (array) $headers as $name => $content ) {
    453                         $phpmailer->AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
     453                        $phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
    454454                }
    455455
    456456                if ( false !== stripos( $content_type, 'multipart' ) && ! empty($boundary) )
    457                         $phpmailer->AddCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) );
     457                        $phpmailer->addCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) );
    458458        }
    459459
    460460        if ( !empty( $attachments ) ) {
    461461                foreach ( $attachments as $attachment ) {
    462462                        try {
    463                                 $phpmailer->AddAttachment($attachment);
     463                                $phpmailer->addAttachment($attachment);
    464464                        } catch ( phpmailerException $e ) {
    465465                                continue;
    466466                        }