Make WordPress Core

Changeset 4953 for trunk/app.php


Ignore:
Timestamp:
02/27/2007 03:24:54 PM (18 years ago)
Author:
markjaquith
Message:

trailing tabs and whitespace cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app.php

    r4937 r4953  
    2424
    2525    $_SERVER['PATH_INFO'] = $action;
    26    
     26
    2727    if ($eid) {
    2828        $_SERVER['PATH_INFO'] .= "/$eid";
     
    174174            array_push($this->entry->categories, $attrs);
    175175        }
    176        
     176
    177177        $this->ns_decls = array();
    178178    }
     
    202202
    203203        array_shift($this->ns_contexts);
    204        
     204
    205205        #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n";
    206206
     
    343343                } else {
    344344                    // only allow what we have handlers for...
    345                     $this->not_allowed(array_keys($funcs)); 
     345                    $this->not_allowed(array_keys($funcs));
    346346                }
    347347            }
     
    454454
    455455    function put_post($postID) {
    456        
     456
    457457        // checked for valid content-types (atom+xml)
    458458        // quick check and exit
     
    509509            $this->auth_required('Sorry, you do not have the right to delete this post.');
    510510        }
    511        
     511
    512512        if ($entry['post_type'] == 'attachment') {
    513             $this->delete_attachment($postID);     
     513            $this->delete_attachment($postID);
    514514        } else {
    515515            $result = wp_delete_post($postID);
     
    524524
    525525    }
    526    
     526
    527527    function get_attachment($postID = NULL) {
    528528
     
    552552        }
    553553        fclose($fp);
    554        
     554
    555555        $slug = '';
    556556        if ( isset( $_SERVER['HTTP_SLUG'] ) )
     
    565565
    566566        log_app('wp_upload_bits returns:',print_r($file,true));
    567        
     567
    568568        $url = $file['url'];
    569569        $file = $file['file'];
     
    719719        fclose($fp);
    720720        fclose($localfp);
    721    
     721
    722722        log_app('function',"put_file($postID)");
    723723        $this->ok();
     
    761761        echo $url;
    762762    }
    763    
     763
    764764    function get_attachments_url($page = NULL) {
    765765        global $use_querystring;
     
    791791            $postID = $GLOBALS['post']->ID;
    792792        }
    793        
     793
    794794        if ($use_querystring) {
    795795            $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->ENTRY_PATH . "&eid=$postID";
     
    813813            $postID = $GLOBALS['post']->ID;
    814814        }
    815        
     815
    816816        if ($use_querystring) {
    817817            $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->MEDIA_SINGLE_PATH ."&eid=$postID";
     
    874874        }
    875875        $page = (int) $page;
    876        
    877         $count = get_option('posts_per_rss');   
     876
     877        $count = get_option('posts_per_rss');
    878878        $query = "paged=$page&posts_per_page=$count&order=DESC";
    879879        if($post_type == 'attachment') {
     
    888888        $blog_id = $GLOBALS['blog_id'];
    889889        $post_cache = $GLOBALS['post_cache'];
    890        
     890
    891891
    892892        $total_count = $this->get_posts_count();
     
    10571057        exit;
    10581058    }
    1059    
     1059
    10601060    function not_found() {
    10611061        log_app('Status','404: Not Found');
     
    10781078        exit;
    10791079    }
    1080    
     1080
    10811081    function created($post_ID, $content, $post_type = 'post') {
    10821082        global $use_querystring;
     
    11521152        $login_data = array();
    11531153        $already_md5 = false;
    1154        
     1154
    11551155        log_app("authenticate()",print_r($_ENV, true));
    11561156
     
    12101210
    12111211    function process_conditionals() {
    1212        
     1212
    12131213        if(empty($this->params)) return;
    12141214        if($_SERVER['REQUEST_METHOD'] == 'DELETE') return;
     
    12411241        $client_modified_timestamp = $client_last_modified ? strtotime($client_last_modified) : 0;
    12421242
    1243         // Make a timestamp for our most recent modification... 
     1243        // Make a timestamp for our most recent modification...
    12441244        $wp_modified_timestamp = strtotime($wp_last_modified);
    12451245
Note: See TracChangeset for help on using the changeset viewer.