Make WordPress Core


Ignore:
Timestamp:
06/14/2007 02:25:30 AM (19 years ago)
Author:
ryan
Message:

Trim empty lines. Nothing but newline.

File:
1 edited

Legend:

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

    r5685 r5700  
    2828function &get_children($args = '', $output = OBJECT) {
    2929        global $post_cache, $wpdb, $blog_id;
    30        
     30
    3131        if ( empty( $args ) ) {
    3232                if ( isset( $GLOBALS['post'] ) ) {
    … …  
    4040                $args = 'post_parent=' . (int) $args;
    4141        }
    42        
     42
    4343        $defaults = array(
    4444                'numberposts' => -1, 'post_type' => '',
    4545                'post_status' => '', 'post_parent' => 0
    4646        );
    47        
     47
    4848        $r = wp_parse_args( $args, $defaults );
    4949
    … …  
    175175function get_posts($args) {
    176176        global $wpdb;
    177        
     177
    178178        $defaults = array(
    179179                'numberposts' => 5, 'offset' => 0,
    … …  
    184184                'post_status' => 'publish', 'post_parent' => 0
    185185        );
    186        
     186
    187187        $r = wp_parse_args( $args, $defaults );
    188188        extract( $r );
    189        
     189
    190190        $numberposts = (int) $numberposts;
    191191        $offset = (int) $offset;
    … …  
    431431
    432432        do_action('deleted_post', $postid);
    433        
     433
    434434        return $post;
    435435}
    … …  
    450450        $defaults = array('fields' => 'all');
    451451        $args = wp_parse_args( $args, $defaults );
    452        
     452
    453453        $tags = get_object_terms($post_id, 'post_tag', $args);
    454454
    … …  
    778778        /* $append - true = don't delete existing tags, just add on, false = replace the tags with the new tags */
    779779        global $wpdb;
    780        
     780
    781781        $post_id = (int) $post_id;
    782        
     782
    783783        if ( !$post_id )
    784784                return false;
    … …  
    10411041function &get_pages($args = '') {
    10421042        global $wpdb;
    1043        
     1043
    10441044        $defaults = array(
    10451045                'child_of' => 0, 'sort_order' => 'ASC',
    … …  
    10491049                'authors' => ''
    10501050        );
    1051        
     1051
    10521052        $r = wp_parse_args( $args, $defaults );
    10531053        extract( $r );
Note: See TracChangeset for help on using the changeset viewer.