Ticket #4601: 4601 patch.patch
| File 4601 patch.patch, 1.4 KB (added by thee17, 5 years ago) |
|---|
-
category-template.php
267 267 'child_of' => 0, 'feed' => '', 'feed_type' => '', 268 268 'feed_image' => '', 'exclude' => '', 269 269 'hierarchical' => true, 'title_li' => __('Categories'), 270 'echo' => 1, 'depth' => 0 270 'echo' => 1, 'depth' => 0, 'before' => '<li>', 'after' => '</li>', 271 'link_before' => '', 'link_after' => '', 272 271 273 ); 272 274 273 275 $r = wp_parse_args( $args, $defaults ); … … 289 291 $output = '<li class="categories">' . $r['title_li'] . '<ul>'; 290 292 291 293 if ( empty($categories) ) { 292 if ( 'list' == $style ) 293 $output .= '<li>' . __("No categories") . '</li>'; 294 else 295 $output .= __("No categories"); 294 $output .= $before . __("No categories") . $after; 296 295 } else { 297 296 global $wp_query; 298 297 299 298 if( !empty($show_option_all) ) 300 if ('list' == $style ) 301 $output .= '<li><a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a></li>'; 302 else 303 $output .= '<a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a>'; 299 $output .= $before; 300 $output .= '<a href="' . get_bloginfo('url') . '">' . $link_before . $show_option_all . $link_after . '</a>'; 301 $output .= $after; 304 302 305 303 if ( is_category() ) 306 304 $r['current_category'] = $wp_query->get_queried_object_id();