Changeset 45781
- Timestamp:
- 08/11/2019 05:20:51 PM (19 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r45735 r45781 399 399 * @type string $feed_image If not empty, show a link to the author's feed and use this image URL as 400 400 * clickable anchor. Default empty. 401 * @type string $feed_type The feed type to link to, such as 'rss2'. Defaults to default feed type. 401 * @type string $feed_type The feed type to link to. Possible values include 'rss2', 'atom'. 402 * Default is the value of get_default_feed(). 402 403 * @type bool $echo Whether to output the result or instead return it. Default true. 403 404 * @type string $style If 'list', each author is wrapped in an `<li>` element, otherwise the authors -
trunk/src/wp-includes/link-template.php
r45739 r45781 585 585 * 586 586 * @param string $anchor The link's anchor text. 587 * @param string $feed Optional. Feed type. Default empty. 587 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 588 * Default is the value of get_default_feed(). 588 589 */ 589 590 function the_feed_link( $anchor, $feed = '' ) { … … 596 597 * 597 598 * @param string $link The complete anchor tag for a feed link. 598 * @param string $feed The feed type , or an empty string for the599 * default feed type.599 * @param string $feed The feed type. Possible values include 'rss2', 'atom', 600 * or an empty string for the default feed type. 600 601 */ 601 602 echo apply_filters( 'the_feed_link', $link, $feed ); … … 609 610 * @global WP_Rewrite $wp_rewrite WordPress rewrite component. 610 611 * 611 * @param string $feed Optional. Feed type. Default empty. 612 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 613 * Default is the value of get_default_feed(). 612 614 * @return string The feed permalink. 613 615 */ … … 647 649 * 648 650 * @param string $output The feed permalink. 649 * @param string $feed Feed type. 651 * @param string $feed The feed type. Possible values include 'rss2', 'atom', 652 * or an empty string for the default feed type. 650 653 */ 651 654 return apply_filters( 'feed_link', $output, $feed ); … … 658 661 * 659 662 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 660 * @param string $feed Optional. Feed type. Default empty. 663 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 664 * Default is the value of get_default_feed(). 661 665 * @return string The permalink for the comments feed for the given post. 662 666 */ … … 744 748 * @param string $link_text Optional. Descriptive link text. Default 'Comments Feed'. 745 749 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 746 * @param string $feed Optional. Feed format. Default empty. 750 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 751 * Default is the value of get_default_feed(). 747 752 */ 748 753 function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) { … … 760 765 * @param string $link The complete anchor tag for the comment feed link. 761 766 * @param int $post_id Post ID. 762 * @param string $feed The feed type, or an empty string for the default feed type. 767 * @param string $feed The feed type. Possible values include 'rss2', 'atom', 768 * or an empty string for the default feed type. 763 769 */ 764 770 echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed ); … … 774 780 * 775 781 * @param int $author_id Author ID. 776 * @param string $feed Optional. Feed type. Default empty. 782 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 783 * Default is the value of get_default_feed(). 777 784 * @return string Link to the feed for the author specified by $author_id. 778 785 */ … … 804 811 * 805 812 * @param string $link The author feed link. 806 * @param string $feed Feed type. 813 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 807 814 */ 808 815 $link = apply_filters( 'author_feed_link', $link, $feed ); … … 820 827 * 821 828 * @param int $cat_id Category ID. 822 * @param string $feed Optional. Feed type. Default empty. 829 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 830 * Default is the value of get_default_feed(). 823 831 * @return string Link to the feed for the category specified by $cat_id. 824 832 */ … … 837 845 * @param int $term_id Term ID. 838 846 * @param string $taxonomy Optional. Taxonomy of `$term_id`. Default 'category'. 839 * @param string $feed Optional. Feed type. Default empty. 847 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 848 * Default is the value of get_default_feed(). 840 849 * @return string|false Link to the feed for the term specified by $term_id and $taxonomy. 841 850 */ … … 882 891 * 883 892 * @param string $link The category feed link. 884 * @param string $feed Feed type. 893 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 885 894 */ 886 895 $link = apply_filters( 'category_feed_link', $link, $feed ); … … 892 901 * 893 902 * @param string $link The tag feed link. 894 * @param string $feed Feed type. 903 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 895 904 */ 896 905 $link = apply_filters( 'tag_feed_link', $link, $feed ); … … 901 910 * @since 3.0.0 902 911 * 903 * @param string $link The taxonomy feed link.904 * @param string $feed Feed type.912 * @param string $link The taxonomy feed link. 913 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 905 914 * @param string $taxonomy The taxonomy name. 906 915 */ … … 917 926 * 918 927 * @param int $tag_id Tag ID. 919 * @param string $feed Optional. Feed type. Default empty. 928 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 929 * Default is the value of get_default_feed(). 920 930 * @return string The feed permalink for the given tag. 921 931 */ … … 1121 1131 * 1122 1132 * @param string $search_query Optional. Search query. Default empty. 1123 * @param string $feed Optional. Feed type. Default empty. 1133 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 1134 * Default is the value of get_default_feed(). 1124 1135 * @return string The search results feed permalink. 1125 1136 */ … … 1147 1158 * 1148 1159 * @param string $link Search feed link. 1149 * @param string $feed Feed type. 1160 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 1150 1161 * @param string $type The search type. One of 'posts' or 'comments'. 1151 1162 */ … … 1161 1172 * 1162 1173 * @param string $search_query Optional. Search query. Default empty. 1163 * @param string $feed Optional. Feed type. Default empty. 1174 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 1175 * Default is the value of get_default_feed(). 1164 1176 * @return string The comments feed search results permalink. 1165 1177 */ … … 1250 1262 * 1251 1263 * @param string $post_type Post type 1252 * @param string $feed Optional. Feed type. Default empty. 1264 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 1265 * Default is the value of get_default_feed(). 1253 1266 * @return string|false The post type feed permalink. 1254 1267 */ … … 1281 1294 * 1282 1295 * @param string $link The post type archive feed link. 1283 * @param string $feed Feed type. 1296 * @param string $feed Feed type. Possible values include 'rss2', 'atom'. 1284 1297 */ 1285 1298 return apply_filters( 'post_type_archive_feed_link', $link, $feed );
Note: See TracChangeset
for help on using the changeset viewer.