Make WordPress Core

Ticket #13949: 13949.3.diff

File 13949.3.diff, 2.0 KB (added by Mte90, 8 years ago)

added docs

  • src/wp-includes/category-template.php

     
    502502 *     @type string       $feed_type             Feed type. Used to build feed link. See {@link get_term_feed_link()}.
    503503 *                                               Default empty string (default feed).
    504504 *     @type string       $feed_image            URL of an image to use for the feed link. Default empty string.
     505 *     @type string       $feed_title            Text to use in case of missing title for the feed. Default 'Feed for all posts filed under %s'.
    505506 *     @type int          $child_of              Term ID to retrieve child terms of. See {@link get_terms()}. Default 0.
    506507 *     @type array|string $exclude               Array or comma/space-separated string of term IDs to exclude.
    507508 *                                               If `$hierarchical` is true, descendants of `$exclude` terms will also
     
    535536                'feed'                => '',
    536537                'feed_image'          => '',
    537538                'feed_type'           => '',
     539                'feed_title'          => __( 'Feed for all posts filed under %s' ),
    538540                'hide_empty'          => 1,
    539541                'hide_title_if_empty' => false,
    540542                'hierarchical'        => true,
  • src/wp-includes/class-walker-category.php

     
    134134                        $link .= '<a href="' . esc_url( get_term_feed_link( $category->term_id, $category->taxonomy, $args['feed_type'] ) ) . '"';
    135135
    136136                        if ( empty( $args['feed'] ) ) {
    137                                 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"';
     137                                $alt = ' alt="' . sprintf( $args['feed_title'], $cat_name ) . '"';
    138138                        } else {
    139139                                $alt = ' alt="' . $args['feed'] . '"';
    140140                                $name = $args['feed'];