Make WordPress Core

Changeset 6025 for trunk/wp-app.php


Ignore:
Timestamp:
09/03/2007 11:19:20 PM (18 years ago)
Author:
ryan
Message:

Strip lines that contain only whitespace down to newlines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r6010 r6025  
    128128            $this->redirect($this->get_service_url());
    129129        }
    130    
     130
    131131        // dispatch
    132132        foreach($this->selectors as $regex => $funcs) {
     
    221221
    222222        $entry = array_pop($parser->feed->entries);
    223        
     223
    224224        log_app('Received entry:', print_r($entry,true));
    225        
     225
    226226        $catnames = array();
    227227        foreach($entry->categories as $cat)
    228228            array_push($catnames, $cat["term"]);
    229        
     229
    230230        $wp_cats = get_categories(array('hide_empty' => false));
    231        
     231
    232232        $post_category = array();
    233        
     233
    234234        foreach($wp_cats as $cat) {
    235235            if(in_array($cat->cat_name, $catnames))
     
    253253        $post_date = $pubtimes[0];
    254254        $post_date_gmt = $pubtimes[1];
    255        
     255
    256256        if ( isset( $_SERVER['HTTP_SLUG'] ) )
    257257            $post_name = $_SERVER['HTTP_SLUG'];
     
    11141114
    11151115    function rfc3339_str2time($str) {
    1116        
     1116
    11171117        $match = false;
    11181118        if(!preg_match("/(\d{4}-\d{2}-\d{2})T(\d{2}\:\d{2}\:\d{2})\.?\d{0,3}(Z|[+-]+\d{2}\:\d{2})/", $str, $match))
    11191119            return false;
    1120    
     1120
    11211121        if($match[3] == 'Z')
    11221122            $match[3] == '+0000';
    1123    
     1123
    11241124        return strtotime($match[1] . " " . $match[2] . " " . $match[3]);
    11251125    }       
     
    11281128
    11291129        $pubtime = $this->rfc3339_str2time($entry->published);
    1130        
     1130
    11311131        if(!$pubtime) {
    11321132            return array(current_time('mysql'),current_time('mysql',1));
Note: See TracChangeset for help on using the changeset viewer.