Make WordPress Core

Ticket #15378: 15378.diff

File 15378.diff, 1.0 KB (added by nacin, 13 years ago)
  • wp-includes/taxonomy.php

     
    8585                        'singular_name' => '',
    8686                ),
    8787                'query_var' => false,
    88                 'rewrite' => false,
     88                'rewrite' => array( 'slug' => 'format' ),
    8989                'show_ui' => false,
    9090                '_builtin' => true,
    9191                'show_in_nav_menus' => false,
  • wp-includes/category-template.php

     
    11891189        return $r;
    11901190}
    11911191
    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 */
     1200function 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