Ticket #4051: 4051.diff
| File 4051.diff, 3.2 KB (added by , 19 years ago) |
|---|
-
wp-includes/bookmark-template.php
16 16 } 17 17 18 18 $defaults = array( 19 'category' => -1, 'before' => '', 20 'after' => '<br />', 'between' => ' ', 21 'show_images' => true, 'orderby' => 'name', 22 'show_description' => true, 'show_rating' => false, 23 'limit' => -1, 'show_updated' => true, 19 'category' => -1, 'before' => '', 20 'after' => '<br />', 'between' => ' ', 21 'show_images' => true, 'orderby' => 'name', 22 'show_description' => true, 'show_rating' => false, 23 'limit' => -1, 'show_updated' => true, 24 24 'echo' => true 25 25 ); 26 26 … … 241 241 242 242 function _walk_bookmarks($bookmarks, $args = '' ) { 243 243 $defaults = array( 244 'show_updated' => 0, 'show_description' => 0, 245 'show_images' => 1, 'before' => '<li>', 244 'show_updated' => 0, 'show_description' => 0, 245 'show_images' => 1, 'before' => '<li>', 246 246 'after' => '</li>', 'between' => "\n" 247 247 ); 248 248 … … 258 258 259 259 $the_link = '#'; 260 260 if ( !empty($bookmark->link_url) ) 261 $the_link = clean_url($bookmark->link_url);261 $the_link = apply_filters('bookmark_url',$bookmark->link_url); 262 262 263 263 $rel = $bookmark->link_rel; 264 264 if ( '' != $rel ) 265 265 $rel = ' rel="' . $rel . '"'; 266 266 267 $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description)); 268 $name = attribute_escape(apply_filters('link_title', $bookmark->link_name)); 267 $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description)); 268 $name = attribute_escape(apply_filters('link_title', $bookmark->link_name)); 269 269 $title = $desc; 270 270 271 271 if ( $show_updated ) … … 315 315 316 316 function wp_list_bookmarks($args = '') { 317 317 $defaults = array( 318 'orderby' => 'name', 'order' => 'ASC', 319 'limit' => -1, 'category' => '', 320 'category_name' => '', 'hide_invisible' => 1, 321 'show_updated' => 0, 'echo' => 1, 322 'categorize' => 1, 'title_li' => __('Bookmarks'), 323 'title_before' => '<h2>', 'title_after' => '</h2>', 324 'category_orderby' => 'name', 'category_order' => 'ASC', 325 'class' => 'linkcat', 'category_before' => '<li id="%id" class="%class">', 318 'orderby' => 'name', 'order' => 'ASC', 319 'limit' => -1, 'category' => '', 320 'category_name' => '', 'hide_invisible' => 1, 321 'show_updated' => 0, 'echo' => 1, 322 'categorize' => 1, 'title_li' => __('Bookmarks'), 323 'title_before' => '<h2>', 'title_after' => '</h2>', 324 'category_orderby' => 'name', 'category_order' => 'ASC', 325 'class' => 'linkcat', 'category_before' => '<li id="%id" class="%class">', 326 326 'category_after' => '</li>' 327 327 ); 328 328 -
wp-includes/default-filters.php
158 158 add_filter('option_siteurl', '_config_wp_siteurl'); 159 159 add_filter('mce_plugins', '_mce_load_rtl_plugin'); 160 160 add_filter('mce_buttons', '_mce_add_direction_buttons'); 161 add_filter('bookmark_url','clean_url'); 161 162 162 163 // Redirect Old Slugs 163 164 add_action('template_redirect', 'wp_old_slug_redirect');