Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r28731 r29206  
    8484    }
    8585
    86     // grab a snapshot of post IDs, just in case it changes during the export
     86    // Grab a snapshot of post IDs, just in case it changes during the export.
    8787    $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" );
    8888
    89     // get the requested terms ready, empty unless posts filtered by category or all content
     89    /*
     90     * Get the requested terms ready, empty unless posts filtered by category
     91     * or all content.
     92     */
    9093    $cats = $tags = $terms = array();
    9194    if ( isset( $term ) && $term ) {
     
    100103        $custom_terms = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) );
    101104
    102         // put categories in order with no child going before its parent
     105        // Put categories in order with no child going before its parent.
    103106        while ( $cat = array_shift( $categories ) ) {
    104107            if ( $cat->parent == 0 || isset( $cats[$cat->parent] ) )
     
    108111        }
    109112
    110         // put terms in order with no child going before its parent
     113        // Put terms in order with no child going before its parent.
    111114        while ( $t = array_shift( $custom_terms ) ) {
    112115            if ( $t->parent == 0 || isset( $terms[$t->parent] ) )
     
    145148     */
    146149    function wxr_site_url() {
    147         // ms: the base url
     150        // Multisite: the base URL.
    148151        if ( is_multisite() )
    149152            return network_home_url();
    150         // wp: the blog url
     153        // WordPress (single site): the blog URL.
    151154        else
    152155            return get_bloginfo_rss( 'url' );
     
    374377<?php if ( $post_ids ) {
    375378    global $wp_query;
    376     $wp_query->in_the_loop = true; // Fake being in the loop.
    377 
    378     // fetch 20 posts at a time rather than loading the entire table into memory
     379
     380    // Fake being in the loop.
     381    $wp_query->in_the_loop = true;
     382
     383    // Fetch 20 posts at a time rather than loading the entire table into memory.
    379384    while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
    380385    $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')';
    381386    $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );
    382387
    383     // Begin Loop
     388    // Begin Loop.
    384389    foreach ( $posts as $post ) {
    385390        setup_postdata( $post );
Note: See TracChangeset for help on using the changeset viewer.