Changeset 1235
- Timestamp:
- 05/05/2004 09:29:23 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r1227 r1235 500 500 501 501 // Force subkeys to be array type: 502 if (!is _array($post_meta_cache[$mpid]))502 if (!isset($post_meta_cache[$mpid]) || !is_array($post_meta_cache[$mpid])) 503 503 $post_meta_cache[$mpid] = array(); 504 if (!is _array($post_meta_cache[$mpid][$mkey]))505 $post_meta_cache[$mpid][ $mkey] = array();504 if (!isset($post_meta_cache[$mpid]["$mkey"]) || !is_array($post_meta_cache[$mpid]["$mkey"])) 505 $post_meta_cache[$mpid]["$mkey"] = array(); 506 506 507 507 // Add a value to the current pid/key: -
trunk/wp-includes/functions.php
r1231 r1235 164 164 global $user_login, $userdata, $user_level, $user_ID, $user_nickname, $user_email, $user_url, $user_pass_md5, $cookiehash; 165 165 // *** retrieving user's data from cookies and db - no spoofing 166 $user_login = $_COOKIE['wordpressuser_' . $cookiehash]; 166 167 if (isset($_COOKIE['wordpressuser_' . $cookiehash])) 168 $user_login = $_COOKIE['wordpressuser_' . $cookiehash]; 167 169 $userdata = get_userdatabylogin($user_login); 168 170 $user_level = $userdata->user_level; -
trunk/wp-includes/links.php
r1152 r1235 124 124 if (get_settings('links_recently_updated_time')) { 125 125 $recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL ".get_settings('links_recently_updated_time')." MINUTE) >= NOW(), 1,0) as recently_updated "; 126 } 126 } else { 127 $recently_updated_test = ''; 128 } 127 129 if ($show_updated) { 128 130 $get_updated = ", UNIX_TIMESTAMP(link_updated) AS link_updated_f "; … … 168 170 } 169 171 foreach ($results as $row) { 172 if (!isset($row->recently_updated)) $row->recently_updated = false; 170 173 echo($before); 171 174 if ($show_updated && $row->recently_updated) { … … 534 537 $cat_order = ('name' == $order) ? 'cat_name' : 'cat_id'; 535 538 536 537 // Fetch the link category data as an array of hashes 539 if (!isset($direction)) $direction = ''; 540 // Fetch the link category data as an array of hashesa 538 541 $cats = $wpdb->get_results(" 539 542 SELECT DISTINCT link_category, cat_name, show_images, -
trunk/wp-includes/template-functions-category.php
r1228 r1235 265 265 } 266 266 267 $exclusions = ''; 267 268 if (!empty($exclude)) { 268 $exclusions = ''; // initialize for safety269 269 $excats = preg_split('/[\s,]+/',$exclude); 270 270 if (count($excats)) { … … 327 327 328 328 foreach ($categories as $category) { 329 if ((intval($hide_empty) == 0 || $category_posts["$category->cat_ID"] > 0) && (!$children || $category->category_parent == $child_of)) {329 if ((intval($hide_empty) == 0 || isset($category_posts["$category->cat_ID"])) && (!$children || $category->category_parent == $child_of)) { 330 330 $num_found++; 331 331 $link = '<a href="'.get_category_link(0, $category->cat_ID, $category->category_nicename).'" '; … … 396 396 $pre = "\t\t<ul class='children'>"; 397 397 $post = "\t\t</ul>\n"; 398 } 399 $thelist=$pre.$thelist.$post; 398 } else { 399 $pre = $post = ''; 400 } 401 $thelist = $pre . $thelist . $post; 400 402 if ($recurse) { 401 403 return $thelist; -
trunk/wp-includes/template-functions-general.php
r1203 r1235 442 442 } 443 443 if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one 444 $ak_titles_for_day["$ak_post_title->dom"] .= htmlspecialchars(stripslashes($ak_post_title->post_title));444 $ak_titles_for_day["$ak_post_title->dom"] = htmlspecialchars(stripslashes($ak_post_title->post_title)); 445 445 } else { 446 446 $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . htmlspecialchars(stripslashes($ak_post_title->post_title)); -
trunk/wp-rss2.php
r1223 r1235 1 1 <?php 2 if (! $feed) {2 if (!isset($feed)) { 3 3 $blog = 1; 4 4 $doing_rss = 1;
Note: See TracChangeset
for help on using the changeset viewer.