Trim trailing whitespace

git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-18 02:43:45 +00:00
parent 1290b81a4f
commit 8d00b5d37d
42 changed files with 322 additions and 322 deletions

View File

@@ -2215,12 +2215,12 @@ class wp_xmlrpc_server extends IXR_Server {
return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));
}
// Only posts can be sticky
if ( $post_type == 'post' && isset( $content_struct['sticky'] ) )
if ( $content_struct['sticky'] == true )
stick_post( $post_ID );
elseif ( $content_struct['sticky'] == false )
unstick_post( $post_ID );
// Only posts can be sticky
if ( $post_type == 'post' && isset( $content_struct['sticky'] ) )
if ( $content_struct['sticky'] == true )
stick_post( $post_ID );
elseif ( $content_struct['sticky'] == false )
unstick_post( $post_ID );
if ( isset($content_struct['custom_fields']) ) {
$this->set_custom_fields($post_ID, $content_struct['custom_fields']);
@@ -2238,7 +2238,7 @@ class wp_xmlrpc_server extends IXR_Server {
function add_enclosure_if_new($post_ID, $enclosure) {
if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {
$encstring = $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'];
$found = false;
foreach ( (array) get_post_custom($post_ID) as $key => $val) {
@@ -2256,7 +2256,7 @@ class wp_xmlrpc_server extends IXR_Server {
}
}
}
/**
* Attach upload to a post.
*
@@ -2522,12 +2522,12 @@ class wp_xmlrpc_server extends IXR_Server {
return new IXR_Error(500, __('Sorry, your entry could not be edited. Something wrong happened.'));
}
// Only posts can be sticky
if ( $post_type == 'post' && isset( $content_struct['sticky'] ) )
if ( $content_struct['sticky'] == true )
stick_post( $post_ID );
elseif ( $content_struct['sticky'] == false )
unstick_post( $post_ID );
// Only posts can be sticky
if ( $post_type == 'post' && isset( $content_struct['sticky'] ) )
if ( $content_struct['sticky'] == true )
stick_post( $post_ID );
elseif ( $content_struct['sticky'] == false )
unstick_post( $post_ID );
if ( isset($content_struct['custom_fields']) ) {
$this->set_custom_fields($post_ID, $content_struct['custom_fields']);
@@ -2603,9 +2603,9 @@ class wp_xmlrpc_server extends IXR_Server {
$postdata['post_status'] = 'publish';
}
$sticky = false;
if ( is_sticky( $post_ID ) )
$sticky = true;
$sticky = false;
if ( is_sticky( $post_ID ) )
$sticky = true;
$enclosure = array();
foreach ( (array) get_post_custom($post_ID) as $key => $val) {