Changeset 7850 for trunk/wp-includes/widgets.php
- Timestamp:
- 04/29/2008 04:08:19 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/widgets.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r7849 r7850 382 382 $options = get_option( 'widget_pages' ); 383 383 384 $title = empty( $options['title'] ) ? __( 'Pages' ) : $options['title'];384 $title = empty( $options['title'] ) ? __( 'Pages' ) : apply_filters('widget_title', $options['title']); 385 385 $sortby = empty( $options['sortby'] ) ? 'menu_order' : $options['sortby']; 386 386 $exclude = empty( $options['exclude'] ) ? '' : $options['exclude']; … … 475 475 $c = $options['count'] ? '1' : '0'; 476 476 $d = $options['dropdown'] ? '1' : '0'; 477 $title = empty($options['title']) ? __('Archives') : $options['title'];477 $title = empty($options['title']) ? __('Archives') : apply_filters('widget_title', $options['title']); 478 478 479 479 echo $before_widget; … … 523 523 extract($args); 524 524 $options = get_option('widget_meta'); 525 $title = empty($options['title']) ? __('Meta') : $options['title'];525 $title = empty($options['title']) ? __('Meta') : apply_filters('widget_title', $options['title']); 526 526 ?> 527 527 <?php echo $before_widget; ?> … … 557 557 extract($args); 558 558 $options = get_option('widget_calendar'); 559 $title = $options['title'];559 $title = apply_filters('widget_title', $options['title']); 560 560 if ( empty($title) ) 561 561 $title = ' '; … … 594 594 return; 595 595 596 $title = $options[$number]['title'];596 $title = apply_filters('widget_title', $options[$number]['title']); 597 597 $text = apply_filters( 'widget_text', $options[$number]['text'] ); 598 598 ?> … … 706 706 $d = $options[$number]['dropdown'] ? '1' : '0'; 707 707 708 $title = empty($options[$number]['title']) ? __('Categories') : $options[$number]['title'];708 $title = empty($options[$number]['title']) ? __('Categories') : apply_filters('widget_title', $options[$number]['title']); 709 709 710 710 echo $before_widget; … … 891 891 extract($args); 892 892 $options = get_option('widget_recent_entries'); 893 $title = empty($options['title']) ? __('Recent Posts') : $options['title'];893 $title = empty($options['title']) ? __('Recent Posts') : apply_filters('widget_title', $options['title']); 894 894 if ( !$number = (int) $options['number'] ) 895 895 $number = 10; … … 956 956 extract($args, EXTR_SKIP); 957 957 $options = get_option('widget_recent_comments'); 958 $title = empty($options['title']) ? __('Recent Comments') : $options['title'];958 $title = empty($options['title']) ? __('Recent Comments') : apply_filters('widget_title', $options['title']); 959 959 if ( !$number = (int) $options['number'] ) 960 960 $number = 5; … … 1062 1062 if ( empty($title) ) 1063 1063 $title = __('Unknown Feed'); 1064 $title = apply_filters('widget_title', $title ); 1064 1065 $url = clean_url(strip_tags($url)); 1065 1066 if ( file_exists(dirname(__FILE__) . '/rss.png') ) … … 1354 1355 extract($args); 1355 1356 $options = get_option('widget_tag_cloud'); 1356 $title = empty($options['title']) ? __('Tags') : $options['title'];1357 $title = empty($options['title']) ? __('Tags') : apply_filters('widget_title', $options['title']); 1357 1358 1358 1359 echo $before_widget;
Note: See TracChangeset
for help on using the changeset viewer.