WordPress.org

Make WordPress Core

Changeset 32591


Ignore:
Timestamp:
05/25/2015 06:24:27 AM (4 years ago)
Author:
DrewAPicture
Message:

Fix inline documentation syntax in wp_xmlrpc_server.

See #32246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r32586 r32591  
    50205020        $postdata = get_post( $post_ID, ARRAY_A );
    50215021
    5022         // If there is no post data for the give post id, stop
    5023         // now and return an error. Other wise a new post will be
    5024         // created (which was the old behavior).
     5022        /*
     5023         * If there is no post data for the give post id, stop now and return an error.
     5024         * Otherwise a new post will be created (which was the old behavior).
     5025         */
    50255026        if ( ! $postdata || empty( $postdata[ 'ID' ] ) )
    50265027            return new IXR_Error( 404, __( 'Invalid post ID.' ) );
     
    52155216        }
    52165217
    5217         // Do some timestamp voodoo
     5218        // Do some timestamp voodoo.
    52185219        if ( !empty( $content_struct['date_created_gmt'] ) )
    5219             // We know this is supposed to be GMT, so we're going to slap that Z on there by force
     5220            // We know this is supposed to be GMT, so we're going to slap that Z on there by force.
    52205221            $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z';
    52215222        elseif ( !empty( $content_struct['dateCreated']) )
     
    52305231        }
    52315232
    5232         // We've got all the data -- post it:
     5233        // We've got all the data -- post it.
    52335234        $newpost = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'post_date', 'post_date_gmt', 'to_ping', 'post_name', 'post_password', 'post_parent', 'menu_order', 'post_author', 'tags_input', 'page_template');
    52345235
     
    52525253
    52535254        if ( isset ( $content_struct['wp_post_thumbnail'] ) ) {
    5254             // empty value deletes, non-empty value adds/updates
     5255
     5256            // Empty value deletes, non-empty value adds/updates.
    52555257            if ( empty( $content_struct['wp_post_thumbnail'] ) ) {
    52565258                delete_post_thumbnail( $post_ID );
     
    52625264        }
    52635265
    5264         // Handle enclosures
     5266        // Handle enclosures.
    52655267        $thisEnclosure = isset($content_struct['enclosure']) ? $content_struct['enclosure'] : null;
    52665268        $this->add_enclosure_if_new($post_ID, $thisEnclosure);
     
    52685270        $this->attach_uploads( $ID, $post_content );
    52695271
    5270         // Handle post formats if assigned, validation is handled
    5271         // earlier in this function
     5272        // Handle post formats if assigned, validation is handled earlier in this function.
    52725273        if ( isset( $content_struct['wp_post_format'] ) )
    52735274            set_post_format( $post_ID, $content_struct['wp_post_format'] );
Note: See TracChangeset for help on using the changeset viewer.