Changeset 1435 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 06/18/2004 12:22:09 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-general.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r1430 r1435 73 73 if(!empty($cat)) { 74 74 if (!stristr($cat,'-')) { // category excluded 75 $title = stripslashes(get_the_category_by_ID($cat));75 $title = get_the_category_by_ID($cat); 76 76 } 77 77 } 78 78 if (!empty($category_name)) { 79 $title = stripslashes($wpdb->get_var("SELECT cat_name FROM $wpdb->categories WHERE category_nicename = '$category_name'"));79 $title = $wpdb->get_var("SELECT cat_name FROM $wpdb->categories WHERE category_nicename = '$category_name'"); 80 80 } 81 81 … … 99 99 // If there's a post 100 100 if ($single) { 101 $title = strip_tags( stripslashes($posts[0]->post_title));101 $title = strip_tags($posts[0]->post_title); 102 102 $title = apply_filters('single_post_title', $title); 103 103 } … … 121 121 $title = apply_filters('single_post_title', $title); 122 122 if ($display) { 123 echo $prefix.strip_tags( stripslashes($title));123 echo $prefix.strip_tags($title); 124 124 } else { 125 return strip_tags( stripslashes($title));125 return strip_tags($title); 126 126 } 127 127 } … … 134 134 if(!empty($my_cat_name)) { 135 135 if ($display) 136 echo $prefix.strip_tags( stripslashes($my_cat_name));136 echo $prefix.strip_tags($my_cat_name); 137 137 else 138 return strip_tags( stripslashes($my_cat_name));138 return strip_tags($my_cat_name); 139 139 } 140 140 } … … 268 268 if ($arcresult->post_date != '0000-00-00 00:00:00') { 269 269 $url = get_permalink($arcresult->ID); 270 $arc_title = stripslashes($arcresult->post_title);270 $arc_title = $arcresult->post_title; 271 271 if ($arc_title) { 272 272 $text = strip_tags($arc_title); … … 420 420 } 421 421 if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one 422 $ak_titles_for_day["$ak_post_title->dom"] = str_replace('"', '"', wptexturize( stripslashes($ak_post_title->post_title)));422 $ak_titles_for_day["$ak_post_title->dom"] = str_replace('"', '"', wptexturize($ak_post_title->post_title)); 423 423 } else { 424 $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . str_replace('"', '"', wptexturize( stripslashes($ak_post_title->post_title)));424 $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . str_replace('"', '"', wptexturize($ak_post_title->post_title)); 425 425 } 426 426 }
Note: See TracChangeset
for help on using the changeset viewer.