Changeset 5998 for trunk/wp-includes/general-template.php
- Timestamp:
- 08/31/2007 11:55:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r5965 r5998 61 61 62 62 function bloginfo($show='') { 63 $info = get_bloginfo($show); 64 65 // Don't filter URL's. 66 if (strpos($show, 'url') === false && 67 strpos($show, 'directory') === false && 68 strpos($show, 'home') === false) { 69 $info = apply_filters('bloginfo', $info, $show); 70 $info = convert_chars($info); 71 } else { 72 $info = apply_filters('bloginfo_url', $info, $show); 73 } 74 75 echo $info; 63 echo get_bloginfo($show, 'display'); 76 64 } 77 65 … … 82 70 * to get the information. 83 71 */ 84 function get_bloginfo($show ='') {72 function get_bloginfo($show = '', $filter = 'raw') { 85 73 86 74 switch($show) { … … 154 142 break; 155 143 } 144 145 $url = true; 146 if (strpos($show, 'url') === false && 147 strpos($show, 'directory') === false && 148 strpos($show, 'home') === false) 149 $url = false; 150 151 if ( 'display' == $filter ) { 152 if ( $url ) 153 $output = apply_filters('bloginfo_url', $output, $show); 154 else 155 $output = apply_filters('bloginfo', $output, $show); 156 } 157 156 158 return $output; 157 159 }
Note: See TracChangeset
for help on using the changeset viewer.