Make WordPress Core

Changeset 11971


Ignore:
Timestamp:
09/24/2009 05:19:13 PM (15 years ago)
Author:
ryan
Message:

Remove trailing whitespace

Location:
trunk
Files:
10 edited

Legend:

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

    r11963 r11971  
    6161function wp_import_handle_upload() {
    6262    if ( !isset($_FILES['import']) ) {
    63         $file['error'] = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 
     63        $file['error'] = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' );
    6464        return $file;
    6565    }
    66    
     66
    6767    $overrides = array( 'test_form' => false, 'test_type' => false );
    6868    $_FILES['import']['name'] .= '.txt';
  • trunk/wp-admin/includes/plugin.php

    r11966 r11971  
    348348        if ( ! $silent )
    349349            do_action( 'deactivate_plugin', trim( $plugin ) );
    350            
     350
    351351        $key = array_search( $plugin, (array) $current );
    352        
     352
    353353        if ( false !== $key )
    354354            array_splice( $current, $key, 1 );
    355            
     355
    356356        //Used by Plugin updater to internally deactivate plugin, however, not to notify plugins of the fact to prevent plugin output.
    357357        if ( ! $silent ) {
     
    490490
    491491function validate_active_plugins() {
    492     $check_plugins = apply_filters( 'active_plugins', get_option('active_plugins') ); 
     492    $check_plugins = apply_filters( 'active_plugins', get_option('active_plugins') );
    493493
    494494    // Sanity check.  If the active plugin list is not an array, make it an
  • trunk/wp-admin/includes/post.php

    r11968 r11971  
    590590        $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta (post_id,meta_key,meta_value ) VALUES (%s, %s, %s)", $post_ID, $metakey, $metavalue) );
    591591        do_action( 'added_postmeta', $wpdb->insert_id, $post_ID, $metakey, $metavalue );
    592        
     592
    593593        return $wpdb->insert_id;
    594594    }
  • trunk/wp-admin/press-this.php

    r11944 r11971  
    6363                if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=\\\?(\"|\')'.preg_quote(htmlspecialchars($image), '/').'\\\?(\2)([^>\/]*)\/*>/is', $upload, $content);
    6464            }
    65    
     65
    6666    // set the post_content and status
    6767    $quick['post_status'] = isset($_POST['publish']) ? 'publish' : 'draft';
  • trunk/wp-admin/upload.php

    r11952 r11971  
    178178</h2>
    179179
    180 <?php 
     180<?php
    181181$message = '';
    182182if ( isset($_GET['posted']) && (int) $_GET['posted'] ) {
  • trunk/wp-includes/comment.php

    r11968 r11971  
    864864
    865865    add_comment_meta($comment_id,'_wp_trash_meta_status', $comment->comment_approved);
    866     add_comment_meta($comment_id,'_wp_trash_meta_time', time() );   
    867    
     866    add_comment_meta($comment_id,'_wp_trash_meta_time', time() );
     867
    868868    wp_set_comment_status($comment_id, 'trash');
    869869
     
    887887
    888888    $comment = array('comment_ID'=>$comment_id, 'comment_approved'=>'0');
    889    
     889
    890890    //Either set comment_approved to the value in comment_meta or worse case to false which will mean moderation
    891891    $comment['comment_approved'] = get_comment_meta($comment_id, '_wp_trash_meta_status', true);
  • trunk/wp-includes/functions.php

    r11968 r11971  
    33863386
    33873387    $comments_to_delete = $wpdb->get_results($wpdb->prepare("SELECT comment_id FROM $wpdb->commentmeta WHERE meta_key = '_wp_trash_meta_time' AND meta_value < '%d'", $delete_timestamp), ARRAY_A);
    3388    
     3388
    33893389    foreach ( (array) $comments_to_delete as $comment ) {
    33903390        wp_delete_comment($comment['comment_id']);
  • trunk/wp-includes/meta.php

    r11968 r11971  
    2525
    2626    if ( $unique && $wpdb->get_var( $wpdb->prepare(
    27         "SELECT COUNT(*) FROM $table WHERE meta_key = %s AND $column = %d", 
     27        "SELECT COUNT(*) FROM $table WHERE meta_key = %s AND $column = %d",
    2828        $meta_key, $object_id ) ) )
    2929        return false;
     
    3232
    3333    $wpdb->insert( $table, array(
    34         $column => $object_id, 
    35         'meta_key' => $meta_key, 
     34        $column => $object_id,
     35        'meta_key' => $meta_key,
    3636        'meta_value' => $meta_value
    3737    ) );
     
    9797
    9898    $query = $wpdb->prepare( "SELECT meta_id FROM $table WHERE meta_key = %s", $meta_key );
    99    
     99
    100100    if ( $meta_value )
    101101        $query .= $wpdb->prepare("AND meta_value = %s", $meta_value );
     
    106106
    107107    $query = "DELETE FROM $table WHERE meta_id IN( " . implode( ',', $meta_ids ) . " )";
    108    
     108
    109109    $count = $wpdb->query($query);
    110    
     110
    111111    if ( !$count )
    112112        return false;
     
    178178    $id_list = join(',', $ids);
    179179    $cache = array();
    180     $meta_list = $wpdb->get_results( $wpdb->prepare("SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list)", 
     180    $meta_list = $wpdb->get_results( $wpdb->prepare("SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list)",
    181181        $meta_type), ARRAY_A );
    182182
  • trunk/wp-includes/taxonomy.php

    r11941 r11971  
    16901690    $wpdb->update( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent' ), array( 'term_taxonomy_id' => $tt_id ) );
    16911691    do_action( 'edited_term_taxonomy', $tt_id );
    1692    
     1692
    16931693    do_action("edit_term", $term_id, $tt_id);
    16941694    do_action("edit_$taxonomy", $term_id, $tt_id);
  • trunk/wp-includes/theme.php

    r11959 r11971  
    908908 * @since 2.9.0
    909909 * @access private
    910  * 
     910 *
    911911 * @return string
    912912 */
     
    917917/**
    918918 * Private function to modify the current stylesheet when previewing a theme
    919  * 
     919 *
    920920 * @since 2.9.0
    921921 * @access private
    922  * 
     922 *
    923923 * @return string
    924924 */
Note: See TracChangeset for help on using the changeset viewer.