Changeset 6726 for trunk/wp-includes/general-template.php
- Timestamp:
- 02/05/2008 06:47:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r6694 r6726 196 196 if ( !empty($tag) ) { 197 197 $tag = get_term($tag, 'post_tag', OBJECT, 'display'); 198 if ( is_wp_error( $tag ) ) 198 if ( is_wp_error( $tag ) ) 199 199 return $tag; 200 200 if ( ! empty($tag->name) ) … … 243 243 else 244 244 $title = $prefix . $title; 245 245 246 246 $title = apply_filters('wp_title', $title, $sep); 247 247 … … 298 298 if ( !empty($tag_id) ) { 299 299 $my_tag = &get_term($tag_id, 'post_tag', OBJECT, 'display'); 300 if ( is_wp_error( $my_tag ) ) 300 if ( is_wp_error( $my_tag ) ) 301 301 return false; 302 302 $my_tag_name = apply_filters('single_tag_title', $my_tag->name); … … 934 934 add_filter('the_editor_content', 'wp_richedit_pre'); 935 935 936 // The following line moves the border so that the active button "attaches" to the toolbar. Only IE needs it. 937 ?> 936 // The following line moves the border so that the active button "attaches" to the toolbar. Only IE needs it. 937 ?> 938 938 <style type="text/css"> 939 939 #postdivrich table, #postdivrich #quicktags {border-top: none;} 940 940 #quicktags {border-bottom: none; padding-bottom: 2px; margin-bottom: -1px;} 941 941 </style> 942 942 943 943 <div id='editor-toolbar' style='display:none;'> 944 944 <div class='zerosize'><input accesskey='e' type='button' onclick='switchEditors.go("<?php echo $id; ?>")' /></div> … … 1018 1018 $attributes = array(); 1019 1019 $output = ''; 1020 1020 1021 1021 if ( $dir = get_bloginfo('text_direction') ) 1022 1022 $attributes[] = "dir=\"$dir\""; 1023 1023 1024 1024 if ( $lang = get_bloginfo('language') ) { 1025 1025 if ( get_option('html_type') == 'text/html' || $doctype == 'xhtml' ) 1026 1026 $attributes[] = "lang=\"$lang\""; 1027 1027 1028 1028 if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' ) 1029 1029 $attributes[] = "xml:lang=\"$lang\""; 1030 1030 } 1031 1031 1032 1032 $output = implode(' ', $attributes); 1033 1033 $output = apply_filters('language_attributes', $output);
Note: See TracChangeset
for help on using the changeset viewer.