Changeset 904
- Timestamp:
- 02/28/07 12:13:39 (2 years ago)
- Files:
-
- trunk/app.php (modified) (20 diffs)
- trunk/wp-admin/admin-ajax.php (modified) (1 diff)
- trunk/wp-admin/admin-functions.php (modified) (9 diffs)
- trunk/wp-admin/custom-header.php (modified) (4 diffs)
- trunk/wp-admin/import/blogger.php (modified) (7 diffs)
- trunk/wp-admin/import/greymatter.php (modified) (5 diffs)
- trunk/wp-admin/link-import.php (modified) (3 diffs)
- trunk/wp-admin/menu.php (modified) (1 diff)
- trunk/wp-admin/options.php (modified) (2 diffs)
- trunk/wp-admin/page.php (modified) (1 diff)
- trunk/wp-admin/post.php (modified) (2 diffs)
- trunk/wp-admin/upgrade-schema.php (modified) (1 diff)
- trunk/wp-admin/upload-functions.php (modified) (3 diffs)
- trunk/wp-admin/upload-js.php (modified) (2 diffs)
- trunk/wp-includes/bookmark-template.php (modified) (1 diff)
- trunk/wp-includes/bookmark.php (modified) (1 diff)
- trunk/wp-includes/cache.php (modified) (2 diffs)
- trunk/wp-includes/category-template.php (modified) (1 diff)
- trunk/wp-includes/classes.php (modified) (6 diffs)
- trunk/wp-includes/cron.php (modified) (3 diffs)
- trunk/wp-includes/feed-atom-comments.php (modified) (3 diffs)
- trunk/wp-includes/feed-atom.php (modified) (1 diff)
- trunk/wp-includes/formatting.php (modified) (1 diff)
- trunk/wp-includes/general-template.php (modified) (1 diff)
- trunk/wp-includes/gettext.php (modified) (1 diff)
- trunk/wp-includes/js/autosave-js.php (modified) (6 diffs)
- trunk/wp-includes/js/tinymce/tiny_mce_config.php (modified) (1 diff)
- trunk/wp-includes/link-template.php (modified) (1 diff)
- trunk/wp-includes/pluggable.php (modified) (1 diff)
- trunk/wp-includes/plugin.php (modified) (7 diffs)
- trunk/wp-includes/post-template.php (modified) (1 diff)
- trunk/wp-includes/post.php (modified) (4 diffs)
- trunk/wp-includes/query.php (modified) (16 diffs)
- trunk/wp-includes/theme.php (modified) (3 diffs)
- trunk/wp-includes/wp-db.php (modified) (3 diffs)
- trunk/wp-login.php (modified) (2 diffs)
- trunk/xmlrpc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app.php
r900 r904 24 24 25 25 $_SERVER['PATH_INFO'] = $action; 26 26 27 27 if ($eid) { 28 28 $_SERVER['PATH_INFO'] .= "/$eid"; … … 174 174 array_push($this->entry->categories, $attrs); 175 175 } 176 176 177 177 $this->ns_decls = array(); 178 178 } … … 202 202 203 203 array_shift($this->ns_contexts); 204 204 205 205 #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n"; 206 206 … … 343 343 } else { 344 344 // only allow what we have handlers for... 345 $this->not_allowed(array_keys($funcs)); 345 $this->not_allowed(array_keys($funcs)); 346 346 } 347 347 } … … 454 454 455 455 function put_post($postID) { 456 456 457 457 // checked for valid content-types (atom+xml) 458 458 // quick check and exit … … 509 509 $this->auth_required('Sorry, you do not have the right to delete this post.'); 510 510 } 511 511 512 512 if ($entry['post_type'] == 'attachment') { 513 $this->delete_attachment($postID); 513 $this->delete_attachment($postID); 514 514 } else { 515 515 $result = wp_delete_post($postID); … … 524 524 525 525 } 526 526 527 527 function get_attachment($postID = NULL) { 528 528 … … 552 552 } 553 553 fclose($fp); 554 554 555 555 $slug = ''; 556 556 if ( isset( $_SERVER['HTTP_SLUG'] ) ) … … 565 565 566 566 log_app('wp_upload_bits returns:',print_r($file,true)); 567 567 568 568 $url = $file['url']; 569 569 $file = $file['file']; … … 719 719 fclose($fp); 720 720 fclose($localfp); 721 721 722 722 log_app('function',"put_file($postID)"); 723 723 $this->ok(); … … 761 761 echo $url; 762 762 } 763 763 764 764 function get_attachments_url($page = NULL) { 765 765 global $use_querystring; … … 791 791 $postID = $GLOBALS['post']->ID; 792 792 } 793 793 794 794 if ($use_querystring) { 795 795 $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->ENTRY_PATH . "&eid=$postID"; … … 813 813 $postID = $GLOBALS['post']->ID; 814 814 } 815 815 816 816 if ($use_querystring) { 817 817 $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->MEDIA_SINGLE_PATH ."&eid=$postID"; … … 874 874 } 875 875 $page = (int) $page; 876 877 $count = get_option('posts_per_rss'); 876 877 $count = get_option('posts_per_rss'); 878 878 $query = "paged=$page&posts_per_page=$count&order=DESC"; 879 879 if($post_type == 'attachment') { … … 888 888 $blog_id = $GLOBALS['blog_id']; 889 889 $post_cache = $GLOBALS['post_cache']; 890 890 891 891 892 892 $total_count = $this->get_posts_count(); … … 1057 1057 exit; 1058 1058 } 1059 1059 1060 1060 function not_found() { 1061 1061 log_app('Status','404: Not Found'); … … 1078 1078 exit; 1079 1079 } 1080 1080 1081 1081 function created($post_ID, $content, $post_type = 'post') { 1082 1082 global $use_querystring; … … 1152 1152 $login_data = array(); 1153 1153 $already_md5 = false; 1154 1154 1155 1155 log_app("authenticate()",print_r($_ENV, true)); 1156 1156 … … 1210 1210 1211 1211 function process_conditionals() { 1212 1212 1213 1213 if(empty($this->params)) return; 1214 1214 if($_SERVER['REQUEST_METHOD'] == 'DELETE') return; … … 1241 1241 $client_modified_timestamp = $client_last_modified ? strtotime($client_last_modified) : 0; 1242 1242 1243 // Make a timestamp for our most recent modification... 1243 // Make a timestamp for our most recent modification... 1244 1244 $wp_modified_timestamp = strtotime($wp_last_modified); 1245 1245 trunk/wp-admin/admin-ajax.php
r888 r904 227 227 $_POST['post_category'] = explode(",", $_POST['catslist']); 228 228 if($_POST['post_type'] == 'page' || empty($_POST['post_category'])) 229 unset($_POST['post_category']); 230 229 unset($_POST['post_category']); 230 231 231 if($_POST['post_ID'] < 0) { 232 232 $_POST['temp_ID'] = $_POST['post_ID']; trunk/wp-admin/admin-functions.php
r888 r904 682 682 // No selected categories, strange 683 683 $checked_categories[] = $default; 684 } 684 } 685 685 } else { 686 686 $checked_categories[] = $default; … … 742 742 // No selected categories, strange 743 743 $checked_categories[] = $default; 744 } 744 } 745 745 } else { 746 746 $checked_categories[] = $default; … … 789 789 $output = ob_get_contents(); 790 790 ob_end_clean(); 791 791 792 792 $output = apply_filters('cat_rows', $output); 793 793 … … 1330 1330 if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$plugin_page] ) ) 1331 1331 return false; 1332 1332 1333 1333 if ( empty( $parent) ) { 1334 1334 if ( isset( $_wp_menu_nopriv[$pagenow] ) ) … … 1342 1342 return false; 1343 1343 if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$key][$plugin_page] ) ) 1344 return false; 1344 return false; 1345 1345 } 1346 1346 return true; … … 1464 1464 $parent_file = $_wp_real_parent_file[$parent_file]; 1465 1465 return $parent_file; 1466 } 1466 } 1467 1467 } 1468 1468 … … 1471 1471 if ( isset( $_wp_real_parent_file[$parent_file] ) ) 1472 1472 $parent_file = $_wp_real_parent_file[$parent_file]; 1473 return $parent_file; 1473 return $parent_file; 1474 1474 } 1475 1475 … … 1911 1911 // Compute the URL 1912 1912 $url = $uploads['url'] . "/$filename"; 1913 1913 1914 1914 $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 1915 1915 … … 2070 2070 wp_clearcookie(); 2071 2071 // 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' )); 2073 2073 } 2074 2074 trunk/wp-admin/custom-header.php
r896 r904 18 18 function js_includes() { 19 19 wp_enqueue_script('cropper'); 20 wp_enqueue_script('colorpicker'); 20 wp_enqueue_script('colorpicker'); 21 21 } 22 22 … … 116 116 pickColor('<?php echo HEADER_TEXTCOLOR; ?>'); 117 117 } 118 118 119 119 function hide_text() { 120 120 $('name').style.display = 'none'; … … 127 127 Event.observe( $('hidetext'), 'click', show_text ); 128 128 } 129 129 130 130 function show_text() { 131 131 $('name').style.display = 'block'; … … 135 135 $('textcolor').value = '<?php echo HEADER_TEXTCOLOR; ?>'; 136 136 $('hidetext').value = '<?php _e('Hide Text'); ?>'; 137 Event.stopObserving( $('hidetext'), 'click', show_text ); 137 Event.stopObserving( $('hidetext'), 'click', show_text ); 138 138 Event.observe( $('hidetext'), 'click', hide_text ); 139 139 } trunk/wp-admin/import/blogger.php
r890 r904 56 56 } 57 57 $this->token = $matches[1]; 58 58 59 59 wp_redirect( remove_query_arg( array( 'token', 'noheader' ) ) ); 60 60 } … … 370 370 if ( ! $sock ) return; // TODO: Error handling 371 371 $response = $this->_txrx( $sock, $request ); 372 372 373 373 $response = $this->parse_response( $response ); 374 374 375 375 // Extract the entries and send for insertion 376 376 preg_match_all( '/<entry[^>]*>.*?<\/entry>/s', $response['body'], $matches ); … … 438 438 $entry = "<feed>$entry</feed>"; 439 439 $AtomParser = new AtomParser(); 440 $AtomParser->parse( $entry ); 440 $AtomParser->parse( $entry ); 441 441 $this->import_comment($AtomParser->entry); 442 442 unset($AtomParser); … … 624 624 $options .= "<option value='$user->user_id'$sel>$user->display_name</option>"; 625 625 } 626 626 627 627 return $options; 628 628 } … … 707 707 global $wpdb; 708 708 $options = get_option( 'blogger_importer' ); 709 709 710 710 if ( isset( $options['token'] ) ) 711 711 $this->revoke( $options['token'] ); … … 923 923 array_push($this->entry->categories, $attrs['term']); 924 924 } 925 925 926 926 $this->ns_decls = array(); 927 927 } … … 951 951 952 952 array_shift($this->ns_contexts); 953 953 954 954 #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n"; 955 955 trunk/wp-admin/import/greymatter.php
r819 r904 92 92 if (!chdir($gmpath)) 93 93 wp_die(sprintf(__("Wrong path, %s\ndoesn't exist\non the server"), $gmpath)); 94 94 95 95 $this->header(); 96 96 ?> … … 129 129 $user_id = wp_insert_user($user_info); 130 130 $this->gmnames[$userdata[0]] = $user_id; 131 131 132 132 printf('<li>'.__('user %s...').' <strong>'.__('Done').'</strong></li>', "<em>$user_login</em>"); 133 133 } … … 214 214 $user_url=$wpdb->escape(""); 215 215 $user_joindate=$wpdb->escape($user_joindate); 216 216 217 217 $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"); 218 218 $user_id = wp_insert_user($user_info); 219 219 $this->gmnames[$postinfo[1]] = $user_id; 220 220 221 221 echo ': '; 222 222 printf(__('registered deleted user %s at level 0 '), "<em>$user_login</em>"); 223 223 } 224 224 225 225 if (array_key_exists($postinfo[1], $this->gmnames)) { 226 226 $post_author = $this->gmnames[$postinfo[1]]; … … 228 228 $post_author = $user_id; 229 229 } 230 230 231 231 $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'); 232 232 $post_ID = wp_insert_post($postdata); … … 310 310 $gm_import = new GM_Import(); 311 311 312 register_importer('greymatter', __('Grey matter'), __('Import posts and comments from yourGreymatter blog'), array ($gm_import, 'dispatch'));312 register_importer('greymatter', __('GreyMatter'), __('Import users, posts, and comments from a Greymatter blog'), array ($gm_import, 'dispatch')); 313 313 ?> trunk/wp-admin/link-import.php
r849 r904 13 13 <?php 14 14 switch ($step) { 15 case 0: 16 { 17 include_once('admin-header.php'); 18 if ( !current_user_can('manage_links') ) 19 wp_die(__('Cheatin’ uh?')); 15 case 0: { 16 include_once('admin-header.php'); 17 if ( !current_user_can('manage_links') ) 18 wp_die(__('Cheatin’ uh?')); 20 19 21 $opmltype = 'blogrolling'; // default.20 $opmltype = 'blogrolling'; // default. 22 21 ?> 23 22 24 23 <div class="wrap"> 24 25 25 <h2><?php _e('Import your blogroll from another system') ?> </h2> 26 26 <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> … … 40 40 <input id="userfile" name="userfile" type="file" size="30" /> 41 41 </div> 42 43 42 44 43 </div> … … 61 60 </div> 62 61 <?php 63 break;64 } // end case 062 break; 63 } // end case 0 65 64 66 case 1: {65 case 1: { 67 66 check_admin_referer('import-bookmarks'); 68 67 69 include_once('admin-header.php');70 if ( !current_user_can('manage_links') )71 wp_die(__('Cheatin’ uh?'));68 include_once('admin-header.php'); 69 if ( !current_user_can('manage_links') ) 70 wp_die(__('Cheatin’ uh?')); 72 71 ?> 73 72 <div class="wrap"> 74 73 75 <h2><?php _e('Importing...') ?></h2>74 <h2><?php _e('Importing...') ?></h2> 76 75 <?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; 81 79 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); 90 86 91 if ( isset($file['error']) )92 wp_die($file['error']);87 if ( isset($file['error']) ) 88 wp_die($file['error']); 93 89 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 } 98 94 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'); 102 98 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 } 113 109 ?> 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 115 113 <?php 116 } // end if got url117 else118 {119 echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n";120 } // end else114 } // end if got url 115 else 116 { 117 echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n"; 118 } // end else 121 119 122 if ( ! $blogrolling )123 @unlink($opml_url);120 if ( ! $blogrolling ) 121 @unlink($opml_url); 124 122 ?> 125 123 </div> 126 124 <?php 127 break;128 } // end case 1125 break; 126 } // end case 1 129 127 } // end switch 130 128 trunk/wp-admin/menu.php
r842 r904 120 120 $_wp_real_parent_file[$old_parent] = $new_parent; 121 121 $menu[$id][2] = $new_parent; 122 122 123 123 foreach ($submenu[$old_parent] as $index => $data) { 124 124 $submenu[$new_parent][$index] = $submenu[$old_parent][$index]; trunk/wp-admin/options.php
r836 r904 95 95 } 96 96 97 return $value; 97 return $value; 98 98 } 99 99 … … 170 170 if (stristr($value, "\n")) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>"; 171 171 else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "'$disabled />"; 172 172 173 173 echo "</td> 174 174 <td>$option->option_description</td> trunk/wp-admin/page.php
r899 r904 109 109 110 110 if ( isset($_POST['save']) ) 111 $location = "page.php?action=edit&post=$page_ID"; 111 $location = "page.php?action=edit&post=$page_ID"; 112 112 } else { 113 113 if ($_POST['save']) { trunk/wp-admin/post.php
r854 r904 48 48 $post_ID = $p = (int) $_GET['post']; 49 49 $post = get_post($post_ID); 50 50 51 51 if ( 'page' == $post->post_type ) { 52 52 wp_redirect("page.php?action=edit&post=$post_ID"); … … 120 120 $referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']); 121 121 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 122 122 123 123 if ($_POST['save']) { 124 124 $location = "post.php?action=edit&post=$post_ID"; trunk/wp-admin/upgrade-schema.php
r880 r904 4 4 global $wp_queries; 5 5 $charset_collate = ''; 6 6 7 7 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) { 8 8 if ( ! empty($wpdb->charset) ) 9 9 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; 10 10 if ( ! empty($wpdb->collate) ) 11 $charset_collate .= " COLLATE $wpdb->collate"; 11 $charset_collate .= " COLLATE $wpdb->collate"; 12 12 } 13 13 trunk/wp-admin/upload-functions.php
r852 r904 14 14 if ( isset($attachment_data['width']) ) 15 15 list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128); 16 16 17 17 ob_start(); 18 18 the_title(); … … 20 20 ob_end_clean(); 21 21 $post_content = apply_filters( 'content_edit_pre', $post->post_content ); 22 22 23 23 $class = 'text'; 24 24 $innerHTML = get_attachment_innerHTML( $id, false, $dims ); … … 286 286 global $wpdb, $action, $paged; 287 287 $old_vars = compact( 'paged' ); 288 288 289 289 switch ( $action ) : 290 290 case 'edit' : trunk/wp-admin/upload-js.php
r852 r904 190 190 new Insertion.Top('upload-content', h); 191 191 if (e) Event.stop(e); 192 return false; 192 return false; 193 193 }, 194 194 … … 265 265 return false; 266 266 } 267 267 268 268 }; 269 269 theFileList.initializeVars(); trunk/wp-includes/bookmark-template.php
r868 r904 346 346 //output one single list using title_li for the title 347 347 $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 349 349 if ( !empty($bookmarks) ) { 350 350 if ( !empty( $title_li ) ){ trunk/wp-includes/bookmark.php
r811 r904 73 73 if (!empty($exclusions)) 74 74 $exclusions .= ')'; 75 75 76 76 if ( ! empty($category_name) ) { 77 77 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 411 411 return $this->__construct(); 412 412 } 413 413 414 414 function __construct() { 415 415 global $blog_id; … … 454 454 function __destruct() { 455 455 $this->save(); 456 return true; 456 return true; 457 457 } 458 458 } trunk/wp-includes/category-template.php
r894 r904 251 251 } else { 252 252 global $wp_query; 253 253 254 254 if ( is_category() ) 255 255 $r['current_category'] = $wp_query->get_queried_object_id(); trunk/wp-includes/classes.php
r890 r904 415 415 $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); 416 416 } 417 417 418 418 // End the element. 419 419 if ( isset($element->$id_field) && $element->$id_field != 0 ) { … … 421 421 $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); 422 422 } 423 424 continue; 425 } 426 423 424 continue; 425 } 426 427 427 // Walk the tree. 428 428 if ( !empty($previous_element) && ($element->$parent_field == $previous_element->$id_field) ) { … … 513 513 514 514 $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 516 516 if ( !empty($show_date) ) { 517 517 if ( 'modified' == $show_date ) … … 519 519 else 520 520 $time = $page->post_date; 521 521 522 522 $output .= " " . mysql2date($date_format, $time); 523 523 } … … 525 525 return $output; 526 526 } 527 527 528 528 function end_el($output, $page, $depth) { 529 529 $output .= "</li>\n"; … … 614 614 $link .= ')'; 615 615 } 616 616 617 617 if ( isset($show_count) && $show_count ) 618 618 $link .= ' (' . intval($category->category_count) . ')'; 619 619 620 620 if ( isset($show_date) && $show_date ) { 621 621 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); trunk/wp-includes/cron.php
r873 r904 55 55 function wp_clear_scheduled_hook( $hook ) { 56 56 $args = array_slice( func_get_args(), 1 ); 57 57 58 58 while ( $timestamp = wp_next_scheduled( $hook, $args ) ) 59 59 wp_unschedule_event( $timestamp, $hook, $args ); … … 74 74 function spawn_cron() { 75 75 $crons = _get_cron_array(); 76 76 77 77 if ( !is_array($crons) ) 78 78 return; 79 79 80 80 $keys = array_keys( $crons );
