Ticket #15378: 15378.diff
File 15378.diff, 1.0 KB (added by , 13 years ago) |
---|
-
wp-includes/taxonomy.php
85 85 'singular_name' => '', 86 86 ), 87 87 'query_var' => false, 88 'rewrite' => false,88 'rewrite' => array( 'slug' => 'format' ), 89 89 'show_ui' => false, 90 90 '_builtin' => true, 91 91 'show_in_nav_menus' => false, -
wp-includes/category-template.php
1189 1189 return $r; 1190 1190 } 1191 1191 1192 ?> 1192 /** 1193 * Returns a link to a post format index. 1194 * 1195 * @since 3.x.0 1196 * 1197 * @param $format string Post format 1198 * @return string Link 1199 */ 1200 function get_post_format_link( $format ) { 1201 $term = get_term( 'post-format-' . $format, 'post_format' ); 1202 if ( ! $term || is_wp_error( $term ) ) 1203 return false; 1204 return get_term_link( $term ); 1205 } 1206 1207 ?> 1208 No newline at end of file