Make WordPress Core

Changeset 8600 for trunk/xmlrpc.php


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (18 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r8543 r8600  
    10141014                // We've got all the data -- post it:
    10151015                $comment = compact('comment_ID', 'comment_content', 'comment_approved', 'comment_date', 'comment_date_gmt', 'comment_author', 'comment_author_email', 'comment_author_url');
    1016                
     1016
    10171017                $result = wp_update_comment($comment);
    10181018                if ( is_wp_error( $result ) )
    … …  
    10931093
    10941094                do_action('xmlrpc_call', 'wp.newComment');
    1095                
     1095
    10961096                return wp_new_comment($comment);
    10971097        }
    … …  
    18821882                }
    18831883
    1884                 // Handle enclosures 
    1885                 $enclosure = $content_struct['enclosure']; 
    1886                 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 
     1884                // Handle enclosures
     1885                $enclosure = $content_struct['enclosure'];
     1886                if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {
    18871887                        add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] );
    1888                 } 
     1888                }
    18891889
    18901890                $this->attach_uploads( $post_ID, $post_content );
    … …  
    21502150                }
    21512151
    2152                 // Handle enclosures 
    2153                 $enclosure = $content_struct['enclosure']; 
    2154                 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 
     2152                // Handle enclosures
     2153                $enclosure = $content_struct['enclosure'];
     2154                if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {
    21552155                        add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] );
    2156                 } 
     2156                }
    21572157
    21582158                $this->attach_uploads( $ID, $post_content );
Note: See TracChangeset for help on using the changeset viewer.