Make WordPress Core


Ignore:
Timestamp:
12/13/2011 11:45:31 PM (12 years ago)
Author:
ryan
Message:

Use one space, not two, after trailing punctuation. fixes #19537

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r19444 r19593  
    3030
    3131/**
    32  * Retrieve the currently-queried object.  Wrapper for $wp_query->get_queried_object()
     32 * Retrieve the currently-queried object. Wrapper for $wp_query->get_queried_object()
    3333 *
    3434 * @uses WP_Query::get_queried_object
     
    729729
    730730/*
    731  * The Loop.  Post loop control.
     731 * The Loop. Post loop control.
    732732 */
    733733
     
    12621262
    12631263    /**
    1264      * Whether query vars have changed since the initial parse_query() call.  Used to catch modifications to query vars made
     1264     * Whether query vars have changed since the initial parse_query() call. Used to catch modifications to query vars made
    12651265     * via pre_get_posts hooks.
    12661266     *
     
    14551455        if ( '' !== $qv['second'] ) $qv['second'] = absint($qv['second']);
    14561456
    1457         // Compat.  Map subpost to attachment.
     1457        // Compat. Map subpost to attachment.
    14581458        if ( '' != $qv['subpost'] )
    14591459            $qv['attachment'] = $qv['subpost'];
     
    14781478            $this->is_single = false;
    14791479        } else {
    1480         // Look for archive queries.  Dates, categories, authors, search, post type archives.
     1480        // Look for archive queries. Dates, categories, authors, search, post type archives.
    14811481
    14821482            if ( !empty($qv['s']) ) {
     
    24502450            if ( !empty($r_status) ) {
    24512451                if ( !empty($q['perm'] ) && 'editable' == $q['perm'] && !current_user_can($edit_others_cap) )
    2452                     $statuswheres[] = "($wpdb->posts.post_author = $user_ID " .  "AND (" . join( ' OR ', $r_status ) . "))";
     2452                    $statuswheres[] = "($wpdb->posts.post_author = $user_ID " . "AND (" . join( ' OR ', $r_status ) . "))";
    24532453                else
    24542454                    $statuswheres[] = "(" . join( ' OR ', $r_status ) . ")";
     
    24562456            if ( !empty($p_status) ) {
    24572457                if ( !empty($q['perm'] ) && 'readable' == $q['perm'] && !current_user_can($read_private_cap) )
    2458                     $statuswheres[] = "($wpdb->posts.post_author = $user_ID " .  "AND (" . join( ' OR ', $p_status ) . "))";
     2458                    $statuswheres[] = "($wpdb->posts.post_author = $user_ID " . "AND (" . join( ' OR ', $p_status ) . "))";
    24592459                else
    24602460                    $statuswheres[] = "(" . join( ' OR ', $p_status ) . ")";
     
    25652565        $pieces = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );
    25662566
    2567         // Apply post-paging filters on where and join.  Only plugins that
     2567        // Apply post-paging filters on where and join. Only plugins that
    25682568        // manipulate paging queries should use these hooks.
    25692569        if ( !$q['suppress_filters'] ) {
     
    25822582        }
    25832583
    2584         // Announce current selection parameters.  For use by caching plugins.
     2584        // Announce current selection parameters. For use by caching plugins.
    25852585        do_action( 'posts_selection', $where . $groupby . $orderby . $limits . $join );
    25862586
    2587         // Filter again for the benefit of caching plugins.  Regular plugins should use the hooks above.
     2587        // Filter again for the benefit of caching plugins. Regular plugins should use the hooks above.
    25882588        if ( !$q['suppress_filters'] ) {
    25892589            $where      = apply_filters_ref_array( 'posts_where_request',       array( $where, &$this ) );
     
    26322632        $this->posts = $wpdb->get_results($this->request);
    26332633
    2634         // Raw results filter.  Prior to status checks.
     2634        // Raw results filter. Prior to status checks.
    26352635        if ( !$q['suppress_filters'] )
    26362636            $this->posts = apply_filters_ref_array('posts_results', array( $this->posts, &$this ) );
     
    27012701                    // Move to front, after other stickies
    27022702                    array_splice($this->posts, $sticky_offset, 0, array($sticky_post));
    2703                     // Increment the sticky offset.  The next sticky will be placed at this offset.
     2703                    // Increment the sticky offset. The next sticky will be placed at this offset.
    27042704                    $sticky_offset++;
    27052705                    // Remove post from sticky posts array
Note: See TracChangeset for help on using the changeset viewer.