Make WordPress Core


Ignore:
Timestamp:
09/14/2009 02:03:32 PM (17 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

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

    r11911 r11930  
    136136
    137137        $children = get_posts( $r );
    138        
     138
    139139        if ( !$children )
    140140                return $kids;
    … …  
    584584
    585585        wp_cache_delete($post_id, 'post_meta');
    586        
     586
    587587        do_action( 'deleted_post_meta', $meta_id, $post_id, $meta_key, $meta_value );
    588588
    … …  
    673673
    674674        do_action( 'update_post_meta', $meta_id, $post_id, $meta_key, $meta_value );
    675        
     675
    676676        $wpdb->update( $wpdb->postmeta, $data, $where );
    677677        wp_cache_delete($post_id, 'post_meta');
    678        
     678
    679679        do_action( 'updated_post_meta', $meta_id, $post_id, $meta_key, $meta_value );
    680        
     680
    681681        return true;
    682682}
    … …  
    11551155        if ( ($post->post_type == 'post' || $post->post_type == 'page') && get_post_status($postid) != 'trash' && EMPTY_TRASH_DAYS > 0 )
    11561156                return wp_trash_post($postid);
    1157                
     1157
    11581158        if ( $post->post_type == 'attachment' )
    11591159                return wp_delete_attachment($postid);
    11601160
    11611161        do_action('delete_post', $postid);
    1162        
     1162
    11631163        delete_post_meta($postid,'_wp_trash_meta_status');
    11641164        delete_post_meta($postid,'_wp_trash_meta_time');
    … …  
    18201820        if ( in_array( $post_status, array( 'draft', 'pending' ) ) )
    18211821                return $slug;
    1822        
     1822
    18231823        global $wpdb, $wp_rewrite;
    18241824        $hierarchical_post_types = apply_filters('hierarchical_post_types', array('page'));
    … …  
    18271827                $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND ID != %d LIMIT 1";
    18281828                $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $slug, $post_ID));
    1829                
     1829
    18301830                if ( $post_name_check || in_array($slug, $wp_rewrite->feeds) ) {
    18311831                        $suffix = 2;
    … …  
    18421842                $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type IN ( '" . implode("', '", $wpdb->escape($hierarchical_post_types)) . "' ) AND ID != %d AND post_parent = %d LIMIT 1";
    18431843                $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $slug, $post_ID, $post_parent));
    1844                
     1844
    18451845                if ( $post_name_check || in_array($slug, $wp_rewrite->feeds) ) {
    18461846                        $suffix = 2;
    … …  
    18561856                $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type = %s AND ID != %d LIMIT 1";
    18571857                $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $slug, $post_type, $post_ID));
    1858                
     1858
    18591859                if ( $post_name_check || in_array($slug, $wp_rewrite->feeds) ) {
    18601860                        $suffix = 2;
Note: See TracChangeset for help on using the changeset viewer.