Ticket #4610: sidebar_widget_tag_cloud.patch
| File sidebar_widget_tag_cloud.patch, 1.1 KB (added by , 19 years ago) |
|---|
-
widgets.php
416 416 <?php 417 417 } 418 418 419 function wp_widget_tag_cloud($args) { 420 global $wp_db_version; 421 extract($args, EXTR_SKIP); 422 # Plugin Author: Jeremy Visser 423 echo $before_widget; 424 # echo $before_title . 'Tags' . $after_title; 425 426 echo '<div class="tag-cloud">'; 427 wp_tag_cloud(); 428 echo '</div>'; 429 430 echo $after_widget; 431 } 432 419 433 function wp_widget_archives($args) { 420 434 extract($args); 421 435 $options = get_option('widget_archives'); … … 1113 1127 $class['classname'] = 'widget_search'; 1114 1128 wp_register_sidebar_widget('search', __('Search'), 'wp_widget_search', $class); 1115 1129 1130 $class['classname'] = 'widget_tag_cloud'; 1131 wp_register_sidebar_widget('tag_cloud', __('Tag cloud'), 'wp_widget_tag_cloud', $class); 1132 1116 1133 $class['classname'] = 'widget_recent_entries'; 1117 1134 wp_register_sidebar_widget('recent-posts', __('Recent Posts'), 'wp_widget_recent_entries', $class); 1118 1135 wp_register_widget_control('recent-posts', __('Recent Posts'), 'wp_widget_recent_entries_control', $dims90);