Changeset 904

Show
Ignore:
Timestamp:
02/28/07 12:13:39 (2 years ago)
Author:
donncha
Message:

WP Merge to rev 4956

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app.php

    r900 r904  
    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 
  • trunk/wp-admin/admin-ajax.php

    r888 r904  
    227227        $_POST['post_category'] = explode(",", $_POST['catslist']); 
    228228        if($_POST['post_type'] == 'page' || empty($_POST['post_category'])) 
    229                 unset($_POST['post_category']);         
    230          
     229                unset($_POST['post_category']); 
     230 
    231231        if($_POST['post_ID'] < 0) { 
    232232                $_POST['temp_ID'] = $_POST['post_ID']; 
  • trunk/wp-admin/admin-functions.php

    r888 r904  
    682682                        // No selected categories, strange 
    683683                        $checked_categories[] = $default; 
    684                 }       
     684                } 
    685685        } else { 
    686686                $checked_categories[] = $default; 
     
    742742                        // No selected categories, strange 
    743743                        $checked_categories[] = $default; 
    744                 }       
     744                } 
    745745        } else { 
    746746                $checked_categories[] = $default; 
     
    789789                $output = ob_get_contents(); 
    790790                ob_end_clean(); 
    791                  
     791 
    792792                $output = apply_filters('cat_rows', $output); 
    793793 
     
    13301330        if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$plugin_page] ) ) 
    13311331                return false; 
    1332          
     1332 
    13331333        if ( empty( $parent) ) { 
    13341334                if ( isset( $_wp_menu_nopriv[$pagenow] ) ) 
     
    13421342                                return false; 
    13431343                        if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$key][$plugin_page] ) ) 
    1344                         return false;   
     1344                        return false; 
    13451345                } 
    13461346                return true; 
     
    14641464                                        $parent_file = $_wp_real_parent_file[$parent_file]; 
    14651465                        return $parent_file; 
    1466                 }                       
     1466                } 
    14671467        } 
    14681468 
     
    14711471                if ( isset( $_wp_real_parent_file[$parent_file] ) ) 
    14721472                        $parent_file = $_wp_real_parent_file[$parent_file]; 
    1473                 return $parent_file;            
     1473                return $parent_file; 
    14741474        } 
    14751475 
     
    19111911        // Compute the URL 
    19121912        $url = $uploads['url'] . "/$filename"; 
    1913          
     1913 
    19141914        $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 
    19151915 
     
    20702070        wp_clearcookie(); 
    20712071        // Set cookies for new paths. 
    2072         wp_setcookie( $user_login, $user_pass_md5, true, get_option( 'home' ), get_option( 'siteurl' ));        
     2072        wp_setcookie( $user_login, $user_pass_md5, true, get_option( 'home' ), get_option( 'siteurl' )); 
    20732073} 
    20742074 
  • trunk/wp-admin/custom-header.php

    r896 r904  
    1818        function js_includes() { 
    1919                wp_enqueue_script('cropper'); 
    20                 wp_enqueue_script('colorpicker');       
     20                wp_enqueue_script('colorpicker'); 
    2121        } 
    2222 
     
    116116                pickColor('<?php echo HEADER_TEXTCOLOR; ?>'); 
    117117        } 
    118          
     118 
    119119        function hide_text() { 
    120120                $('name').style.display = 'none'; 
     
    127127                Event.observe( $('hidetext'), 'click', show_text ); 
    128128        } 
    129          
     129 
    130130        function show_text() { 
    131131                $('name').style.display = 'block'; 
     
    135135                $('textcolor').value = '<?php echo HEADER_TEXTCOLOR; ?>'; 
    136136                $('hidetext').value = '<?php _e('Hide Text'); ?>'; 
    137                 Event.stopObserving( $('hidetext'), 'click', show_text );       
     137                Event.stopObserving( $('hidetext'), 'click', show_text ); 
    138138                Event.observe( $('hidetext'), 'click', hide_text ); 
    139139        } 
  • trunk/wp-admin/import/blogger.php

    r890 r904  
    5656                } 
    5757                $this->token = $matches[1]; 
    58                  
     58 
    5959                wp_redirect( remove_query_arg( array( 'token', 'noheader' ) ) ); 
    6060        } 
     
    370370                                if ( ! $sock ) return; // TODO: Error handling 
    371371                                $response = $this->_txrx( $sock, $request ); 
    372          
     372 
    373373                                $response = $this->parse_response( $response ); 
    374          
     374 
    375375                                // Extract the entries and send for insertion 
    376376                                preg_match_all( '/<entry[^>]*>.*?<\/entry>/s', $response['body'], $matches ); 
     
    438438                                                $entry = "<feed>$entry</feed>"; 
    439439                                                $AtomParser = new AtomParser(); 
    440                                                 $AtomParser->parse( $entry );   
     440                                                $AtomParser->parse( $entry ); 
    441441                                                $this->import_comment($AtomParser->entry); 
    442442                                                unset($AtomParser); 
     
    624624                        $options .= "<option value='$user->user_id'$sel>$user->display_name</option>"; 
    625625                } 
    626                  
     626 
    627627                return $options; 
    628628        } 
     
    707707                global $wpdb; 
    708708                $options = get_option( 'blogger_importer' ); 
    709                  
     709 
    710710                if ( isset( $options['token'] ) ) 
    711711                        $this->revoke( $options['token'] ); 
     
    923923                        array_push($this->entry->categories, $attrs['term']); 
    924924                } 
    925                  
     925 
    926926                $this->ns_decls = array(); 
    927927        } 
     
    951951 
    952952                array_shift($this->ns_contexts); 
    953                  
     953 
    954954                #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n"; 
    955955 
  • trunk/wp-admin/import/greymatter.php

    r819 r904  
    9292                if (!chdir($gmpath)) 
    9393                        wp_die(sprintf(__("Wrong path, %s\ndoesn't exist\non the server"), $gmpath)); 
    94                          
     94 
    9595                $this->header(); 
    9696?> 
     
    129129                $user_id = wp_insert_user($user_info); 
    130130                $this->gmnames[$userdata[0]] = $user_id; 
    131                  
     131 
    132132                printf('<li>'.__('user %s...').' <strong>'.__('Done').'</strong></li>', "<em>$user_login</em>"); 
    133133        } 
     
    214214                                        $user_url=$wpdb->escape(""); 
    215215                                        $user_joindate=$wpdb->escape($user_joindate); 
    216                                          
     216 
    217217                                        $user_info = array("user_login"=>$user_login, "user_pass"=>$pass1, "user_nickname"=>$user_nickname, "user_email"=>$user_email, "user_url"=>$user_url, "user_ip"=>$user_ip, "user_domain"=>$user_domain, "user_browser"=>$user_browser, "dateYMDhour"=>$user_joindate, "user_level"=>0, "user_idmode"=>"nickname"); 
    218218                                        $user_id = wp_insert_user($user_info); 
    219219                                        $this->gmnames[$postinfo[1]] = $user_id; 
    220                                          
     220 
    221221                                        echo ': '; 
    222222                                        printf(__('registered deleted user %s at level 0 '), "<em>$user_login</em>"); 
    223223                                } 
    224                          
     224 
    225225                                if (array_key_exists($postinfo[1], $this->gmnames)) { 
    226226                                        $post_author = $this->gmnames[$postinfo[1]]; 
     
    228228                                        $post_author = $user_id; 
    229229                                } 
    230                          
     230 
    231231                                $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_modified', 'post_modified_gmt'); 
    232232                                $post_ID = wp_insert_post($postdata); 
     
    310310$gm_import = new GM_Import(); 
    311311 
    312 register_importer('greymatter', __('Greymatter'), __('Import posts and comments from your Greymatter blog'), array ($gm_import, 'dispatch')); 
     312register_importer('greymatter', __('GreyMatter'), __('Import users, posts, and comments from a Greymatter blog'), array ($gm_import, 'dispatch')); 
    313313?> 
  • trunk/wp-admin/link-import.php

    r849 r904  
    1313<?php 
    1414switch ($step) { 
    15     case 0: 
    16     { 
    17         include_once('admin-header.php'); 
    18         if ( !current_user_can('manage_links') ) 
    19             wp_die(__('Cheatin&#8217; uh?')); 
     15        case 0: { 
     16                include_once('admin-header.php'); 
     17                if ( !current_user_can('manage_links') ) 
     18                        wp_die(__('Cheatin&#8217; uh?')); 
    2019 
    21         $opmltype = 'blogrolling'; // default. 
     20               $opmltype = 'blogrolling'; // default. 
    2221?> 
    2322 
    2423<div class="wrap"> 
     24 
    2525<h2><?php _e('Import your blogroll from another system') ?> </h2> 
    2626<form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> 
     
    4040<input id="userfile" name="userfile" type="file" size="30" /> 
    4141</div> 
    42  
    4342 
    4443</div> 
     
    6160</div> 
    6261<?php 
    63                 break; 
    64             } // end case 0 
     62               break; 
     63       } // end case 0 
    6564 
    66     case 1: { 
     65       case 1: { 
    6766                check_admin_referer('import-bookmarks'); 
    6867 
    69                 include_once('admin-header.php'); 
    70                 if ( !current_user_can('manage_links') ) 
    71                     wp_die(__('Cheatin&#8217; uh?')); 
     68               include_once('admin-header.php'); 
     69               if ( !current_user_can('manage_links') ) 
     70                       wp_die(__('Cheatin&#8217; uh?')); 
    7271?> 
    7372<div class="wrap"> 
    7473 
    75      <h2><?php _e('Importing...') ?></h2> 
     74<h2><?php _e('Importing...') ?></h2> 
    7675<?php 
    77                 $cat_id = $_POST['cat_id']; 
    78                 if (($cat_id == '') || ($cat_id == 0)) { 
    79                     $cat_id  = 1; 
    80                 } 
     76                $cat_id = $_POST['cat_id']; 
     77                if ( $cat_id == '' || $cat_id == 0 ) 
     78                        $cat_id  = 1; 
    8179 
    82                 $opml_url = $_POST['opml_url']; 
    83                 if (isset($opml_url) && $opml_url != '' && $opml_url != 'http://') { 
    84                                         $blogrolling = true; 
    85                 } 
    86                 else // try to get the upload file. 
    87                                 { 
    88                                         $overrides = array('test_form' => false, 'test_type' => false); 
    89                                         $file = wp_handle_upload($_FILES['userfile'], $overrides); 
     80                $opml_url = $_POST['opml_url']; 
     81                if ( isset($opml_url) && $opml_url != '' && $opml_url != 'http://' ) { 
     82                        $blogrolling = true; 
     83                } else { // try to get the upload file. 
     84                        $overrides = array('test_form' => false, 'test_type' => false); 
     85                        $file = wp_handle_upload($_FILES['userfile'], $overrides); 
    9086 
    91                                        if ( isset($file['error']) ) 
    92                                                wp_die($file['error']); 
     87                        if ( isset($file['error']) ) 
     88                                wp_die($file['error']); 
    9389 
    94                                        $url = $file['url']; 
    95                                        $opml_url = $file['file']; 
    96                                        $blogrolling = false; 
    97                                
     90                        $url = $file['url']; 
     91                        $opml_url = $file['file']; 
     92                        $blogrolling = false; 
     93               
    9894 
    99                 if (isset($opml_url) && $opml_url != '') { 
    100                     $opml = wp_remote_fopen($opml_url); 
    101                     include_once('link-parse-opml.php'); 
     95               if ( isset($opml_url) && $opml_url != '' ) { 
     96                       $opml = wp_remote_fopen($opml_url); 
     97                       include_once('link-parse-opml.php'); 
    10298 
    103                     $link_count = count($names); 
    104                     for ($i = 0; $i < $link_count; $i++) { 
    105                         if ('Last' == substr($titles[$i], 0, 4)) 
    106                             $titles[$i] = ''; 
    107                         if ('http' == substr($titles[$i], 0, 4)
    108                             $titles[$i] = ''; 
    109                         $link = array( 'link_url' => $urls[$i], 'link_name' => $wpdb->escape($names[$i]), 'link_category' => array($cat_id), 'link_description' => $wpdb->escape($descriptions[$i]), 'link_owner' => $user_ID, 'link_rss' => $feeds[$i]);                                
    110                                                wp_insert_link($link); 
    111                                                echo sprintf('<p>'.__('Inserted <strong>%s</strong>').'</p>', $names[$i]); 
    112                    
     99                       $link_count = count($names); 
     100                       for ( $i = 0; $i < $link_count; $i++ ) { 
     101                               if ('Last' == substr($titles[$i], 0, 4)) 
     102                                       $titles[$i] = ''; 
     103                               if ( 'http' == substr($titles[$i], 0, 4)
     104                                       $titles[$i] = ''; 
     105                                $link = array( 'link_url' => $urls[$i], 'link_name' => $wpdb->escape($names[$i]), 'link_category' => array($cat_id), 'link_description' => $wpdb->escape($descriptions[$i]), 'link_owner' => $user_ID, 'link_rss' => $feeds[$i]); 
     106                                wp_insert_link($link); 
     107                                echo sprintf('<p>'.__('Inserted <strong>%s</strong>').'</p>', $names[$i]); 
     108                       
    113109?> 
    114      <p><?php printf(__('Inserted %1$d links into category %2$s. All done! Go <a href="%3$s">manage those links</a>.'), $link_count, $cat_id, 'link-manager.php') ?></p> 
     110 
     111<p><?php printf(__('Inserted %1$d links into category %2$s. All done! Go <a href="%3$s">manage those links</a>.'), $link_count, $cat_id, 'link-manager.php') ?></p> 
     112 
    115113<?php 
    116                 } // end if got url 
    117                 else 
    118                
    119                     echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n"; 
    120                 } // end else 
     114} // end if got url 
     115else 
     116
     117       echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n"; 
     118} // end else 
    121119 
    122                                if ( ! $blogrolling ) 
    123                                        @unlink($opml_url); 
     120if ( ! $blogrolling ) 
     121        @unlink($opml_url); 
    124122?> 
    125123</div> 
    126124<?php 
    127                 break; 
    128             } // end case 1 
     125               break; 
     126       } // end case 1 
    129127} // end switch 
    130128 
  • trunk/wp-admin/menu.php

    r842 r904  
    120120                $_wp_real_parent_file[$old_parent] = $new_parent; 
    121121                $menu[$id][2] = $new_parent; 
    122                  
     122 
    123123                foreach ($submenu[$old_parent] as $index => $data) { 
    124124                        $submenu[$new_parent][$index] = $submenu[$old_parent][$index]; 
  • trunk/wp-admin/options.php

    r836 r904  
    9595        } 
    9696 
    97         return $value;  
     97        return $value; 
    9898} 
    9999 
     
    170170        if (stristr($value, "\n")) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>"; 
    171171        else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "'$disabled />"; 
    172          
     172 
    173173        echo "</td> 
    174174        <td>$option->option_description</td> 
  • trunk/wp-admin/page.php

    r899 r904  
    109109 
    110110                if ( isset($_POST['save']) ) 
    111                         $location = "page.php?action=edit&post=$page_ID";               
     111                        $location = "page.php?action=edit&post=$page_ID"; 
    112112        } else { 
    113113                if ($_POST['save']) { 
  • trunk/wp-admin/post.php

    r854 r904  
    4848        $post_ID = $p = (int) $_GET['post']; 
    4949        $post = get_post($post_ID); 
    50          
     50 
    5151        if ( 'page' == $post->post_type ) { 
    5252                wp_redirect("page.php?action=edit&post=$post_ID"); 
     
    120120                        $referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']); 
    121121                $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 
    122          
     122 
    123123                if ($_POST['save']) { 
    124124                        $location = "post.php?action=edit&post=$post_ID"; 
  • trunk/wp-admin/upgrade-schema.php

    r880 r904  
    44global $wp_queries; 
    55$charset_collate = ''; 
    6          
     6 
    77if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) { 
    88        if ( ! empty($wpdb->charset) ) 
    99                $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; 
    1010        if ( ! empty($wpdb->collate) ) 
    11                 $charset_collate .= " COLLATE $wpdb->collate";  
     11                $charset_collate .= " COLLATE $wpdb->collate"; 
    1212} 
    1313 
  • trunk/wp-admin/upload-functions.php

    r852 r904  
    1414        if ( isset($attachment_data['width']) ) 
    1515                list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128); 
    16                  
     16 
    1717        ob_start(); 
    1818                the_title(); 
     
    2020        ob_end_clean(); 
    2121        $post_content = apply_filters( 'content_edit_pre', $post->post_content ); 
    22          
     22 
    2323        $class = 'text'; 
    2424        $innerHTML = get_attachment_innerHTML( $id, false, $dims ); 
     
    286286        global $wpdb, $action, $paged; 
    287287        $old_vars = compact( 'paged' ); 
    288          
     288 
    289289        switch ( $action ) : 
    290290        case 'edit' : 
  • trunk/wp-admin/upload-js.php

    r852 r904  
    190190                        new Insertion.Top('upload-content', h); 
    191191                        if (e) Event.stop(e); 
    192                         return false;           
     192                        return false; 
    193193                }, 
    194194 
     
    265265                        return false; 
    266266                } 
    267                          
     267 
    268268        }; 
    269269        theFileList.initializeVars(); 
  • trunk/wp-includes/bookmark-template.php

    r868 r904  
    346346                //output one single list using title_li for the title 
    347347                $bookmarks = get_bookmarks("limit=$limit&category=$category&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated"); 
    348                  
     348 
    349349                if ( !empty($bookmarks) ) { 
    350350                        if ( !empty( $title_li ) ){ 
  • trunk/wp-includes/bookmark.php

    r811 r904  
    7373        if (!empty($exclusions)) 
    7474                $exclusions .= ')'; 
    75                  
     75 
    7676        if ( ! empty($category_name) ) { 
    7777                if ( $cat_id = $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE cat_name='$category_name' LIMIT 1") ) 
  • trunk/wp-includes/cache.php

    r879 r904  
    411411                return $this->__construct(); 
    412412        } 
    413          
     413 
    414414        function __construct() { 
    415415                global $blog_id; 
     
    454454        function __destruct() { 
    455455                $this->save(); 
    456                 return true;    
     456                return true; 
    457457        } 
    458458} 
  • trunk/wp-includes/category-template.php

    r894 r904  
    251251        } else { 
    252252                global $wp_query; 
    253                  
     253 
    254254                if ( is_category() ) 
    255255                        $r['current_category'] = $wp_query->get_queried_object_id(); 
  • trunk/wp-includes/classes.php

    r890 r904  
    415415                                        $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); 
    416416                                } 
    417          
     417 
    418418                                // End the element. 
    419419                                if ( isset($element->$id_field) && $element->$id_field != 0 ) { 
     
    421421                                        $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); 
    422422                                } 
    423          
    424                                 continue;       
    425                         } 
    426          
     423 
     424                                continue; 
     425                        } 
     426 
    427427                        // Walk the tree. 
    428428                        if ( !empty($previous_element) && ($element->$parent_field == $previous_element->$id_field) ) { 
     
    513513 
    514514                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape($page->post_title) . '">' . $page->post_title . '</a>'; 
    515          
     515 
    516516                if ( !empty($show_date) ) { 
    517517                        if ( 'modified' == $show_date ) 
     
    519519                        else 
    520520                                $time = $page->post_date; 
    521          
     521 
    522522                        $output .= " " . mysql2date($date_format, $time); 
    523523                } 
     
    525525                return $output; 
    526526        } 
    527          
     527 
    528528        function end_el($output, $page, $depth) { 
    529529                $output .= "</li>\n"; 
     
    614614                                $link .= ')'; 
    615615                } 
    616          
     616 
    617617                if ( isset($show_count) && $show_count ) 
    618618                        $link .= ' (' . intval($category->category_count) . ')'; 
    619          
     619 
    620620                if ( isset($show_date) && $show_date ) { 
    621621                        $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); 
  • trunk/wp-includes/cron.php

    r873 r904  
    5555function wp_clear_scheduled_hook( $hook ) { 
    5656        $args = array_slice( func_get_args(), 1 ); 
    57          
     57 
    5858        while ( $timestamp = wp_next_scheduled( $hook, $args ) ) 
    5959                wp_unschedule_event( $timestamp, $hook, $args ); 
     
    7474function spawn_cron() { 
    7575        $crons = _get_cron_array(); 
    76          
     76 
    7777        if ( !is_array($crons) ) 
    7878                return; 
    79          
     79 
    8080        $keys = array_keys( $crons );