Changeset 37213
- Timestamp:
- 04/15/2016 04:57:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r36940 r37213 8 8 9 9 /** 10 * Display the permalink for the current post.10 * Displays the permalink for the current post. 11 11 * 12 12 * @since 1.2.0 … … 17 17 function the_permalink( $post = 0 ) { 18 18 /** 19 * Filter the display of the permalink for the current post.19 * Filters the display of the permalink for the current post. 20 20 * 21 21 * @since 1.5.0 … … 29 29 30 30 /** 31 * Retrieve trailing slash string, ifsite is set for adding trailing slashes.31 * Retrieves a trailing-slashed string if the site is set for adding trailing slashes. 32 32 * 33 33 * Conditionally adds a trailing slash if the permalink structure has a trailing … … 37 37 * 38 38 * @since 2.2.0 39 * 39 40 * @global WP_Rewrite $wp_rewrite 40 41 * … … 51 52 52 53 /** 53 * Filter the trailing slashed string, depending on whether the site is set 54 * to use training slashes. 54 * Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes. 55 55 * 56 56 * @since 2.2.0 … … 65 65 66 66 /** 67 * Display permalink anchor forcurrent post.67 * Displays the permalink anchor for the current post. 68 68 * 69 69 * The permalink mode title will use the post title for the 'a' element 'id' … … 89 89 90 90 /** 91 * Retrieve full permalink forcurrent post or post ID.91 * Retrieves the full permalink for the current post or post ID. 92 92 * 93 93 * This function is an alias for get_permalink(). … … 107 107 108 108 /** 109 * Retrieve full permalink forcurrent post or post ID.109 * Retrieves the full permalink for the current post or post ID. 110 110 * 111 111 * @since 1.0.0 … … 150 150 151 151 /** 152 * Filter the permalink structure for a post before token replacement occurs.152 * Filters the permalink structure for a post before token replacement occurs. 153 153 * 154 154 * Only applies to posts with post_type of 'post'. … … 223 223 224 224 /** 225 * Filter the permalink for a post.225 * Filters the permalink for a post. 226 226 * 227 227 * Only applies to posts with post_type of 'post'. … … 237 237 238 238 /** 239 * Retrieve the permalink for a post witha custom post type.239 * Retrieves the permalink for a post of a custom post type. 240 240 * 241 241 * @since 3.0.0 … … 282 282 283 283 /** 284 * Filter the permalink for a post witha custom post type.284 * Filters the permalink for a post of a custom post type. 285 285 * 286 286 * @since 3.0.0 … … 295 295 296 296 /** 297 * Retrieve the permalink forcurrent page or page ID.297 * Retrieves the permalink for the current page or page ID. 298 298 * 299 299 * Respects page_on_front. Use this one. … … 327 327 328 328 /** 329 * Retrieve the page permalink.329 * Retrieves the page permalink. 330 330 * 331 331 * Ignores page_on_front. Internal use only. … … 373 373 374 374 /** 375 * Retrieve permalink forattachment.375 * Retrieves the permalink for an attachment. 376 376 * 377 377 * This can be used in the WordPress Loop or outside of it. … … 420 420 421 421 /** 422 * Filter the permalink for an attachment.422 * Filters the permalink for an attachment. 423 423 * 424 424 * @since 2.0.0 … … 431 431 432 432 /** 433 * Retrieve the permalink for the year archives.433 * Retrieves the permalink for the year archives. 434 434 * 435 435 * @since 1.5.0 … … 453 453 454 454 /** 455 * Filter the year archive permalink.455 * Filters the year archive permalink. 456 456 * 457 457 * @since 1.5.0 … … 464 464 465 465 /** 466 * Retrieve the permalink for the month archives with year.466 * Retrieves the permalink for the month archives with year. 467 467 * 468 468 * @since 1.0.0 … … 490 490 491 491 /** 492 * Filter the month archive permalink.492 * Filters the month archive permalink. 493 493 * 494 494 * @since 1.5.0 … … 502 502 503 503 /** 504 * Retrieve the permalink for the day archives with year and month.504 * Retrieves the permalink for the day archives with year and month. 505 505 * 506 506 * @since 1.0.0 … … 546 546 547 547 /** 548 * Display the permalink for the feed type.548 * Displays the permalink for the feed type. 549 549 * 550 550 * @since 3.0.0 … … 557 557 558 558 /** 559 * Filter the feed link anchor tag.559 * Filters the feed link anchor tag. 560 560 * 561 561 * @since 3.0.0 … … 569 569 570 570 /** 571 * Retrieve the permalink for the feed type.571 * Retrieves the permalink for the feed type. 572 572 * 573 573 * @since 1.5.0 … … 605 605 606 606 /** 607 * Filter the feed type permalink.607 * Filters the feed type permalink. 608 608 * 609 609 * @since 1.5.0 … … 616 616 617 617 /** 618 * Retrieve the permalink for the post comments feed.618 * Retrieves the permalink for the post comments feed. 619 619 * 620 620 * @since 2.2.0 … … 665 665 666 666 /** 667 * Filter the post comments feed permalink.667 * Filters the post comments feed permalink. 668 668 * 669 669 * @since 1.5.1 … … 675 675 676 676 /** 677 * Display the comment feed link for a post.677 * Displays the comment feed link for a post. 678 678 * 679 679 * Prints out the comment feed link for a post. Link text is placed in the … … 695 695 $link = '<a href="' . esc_url( $url ) . '">' . $link_text . '</a>'; 696 696 /** 697 * Filter the post comment feed link anchor tag.697 * Filters the post comment feed link anchor tag. 698 698 * 699 699 * @since 2.8.0 … … 707 707 708 708 /** 709 * Retrieve the feed link for a given author.709 * Retrieves the feed link for a given author. 710 710 * 711 711 * Returns a link to the feed for all posts by a given author. A specific feed … … 738 738 739 739 /** 740 * Filter the feed link for a given author.740 * Filters the feed link for a given author. 741 741 * 742 742 * @since 1.5.1 … … 751 751 752 752 /** 753 * Retrieve the feed link for a category.753 * Retrieves the feed link for a category. 754 754 * 755 755 * Returns a link to the feed for all posts in a given category. A specific feed … … 767 767 768 768 /** 769 * Retrieve the feed link for a term.769 * Retrieves the feed link for a term. 770 770 * 771 771 * Returns a link to the feed for all posts in a given term. A specific feed … … 849 849 850 850 /** 851 * Retrieve permalink for feed of tag.851 * Retrieves the permalink for a tag feed. 852 852 * 853 853 * @since 2.3.0 … … 862 862 863 863 /** 864 * Retrieve edit tag link.864 * Retrieves the edit link for a tag. 865 865 * 866 866 * @since 2.7.0 … … 882 882 883 883 /** 884 * Display or retrieve edit tag linkwith formatting.884 * Displays or retrieves the edit link for a tag with formatting. 885 885 * 886 886 * @since 2.7.0 … … 895 895 896 896 /** 897 * Filter the anchor tag for the edit link for a tag (or term in another taxonomy).897 * Filters the anchor tag for the edit link for a tag (or term in another taxonomy). 898 898 * 899 899 * @since 2.7.0 … … 945 945 946 946 /** 947 * Filter the edit link for a term.947 * Filters the edit link for a term. 948 948 * 949 949 * @since 3.1.0 … … 958 958 959 959 /** 960 * Display or retrieve edit term link with formatting.960 * Displays or retrieves the edit term link with formatting. 961 961 * 962 962 * @since 3.1.0 … … 986 986 987 987 /** 988 * Filter the anchor tag for the edit link of a term.988 * Filters the anchor tag for the edit link of a term. 989 989 * 990 990 * @since 3.1.0 … … 1002 1002 1003 1003 /** 1004 * Retrieve permalink forsearch.1004 * Retrieves the permalink for a search. 1005 1005 * 1006 1006 * @since 3.0.0 … … 1031 1031 1032 1032 /** 1033 * Filter the search permalink.1033 * Filters the search permalink. 1034 1034 * 1035 1035 * @since 3.0.0 … … 1042 1042 1043 1043 /** 1044 * Retrieve the permalink for the feed of the search results.1044 * Retrieves the permalink for the search results feed. 1045 1045 * 1046 1046 * @since 2.5.0 … … 1069 1069 1070 1070 /** 1071 * Filter the search feed link.1071 * Filters the search feed link. 1072 1072 * 1073 1073 * @since 2.5.0 … … 1081 1081 1082 1082 /** 1083 * Retrieve the permalink for the comments feed of the search results.1083 * Retrieves the permalink for the search results comments feed. 1084 1084 * 1085 1085 * @since 2.5.0 … … 1154 1154 1155 1155 /** 1156 * Filter the post type archive permalink.1156 * Filters the post type archive permalink. 1157 1157 * 1158 1158 * @since 3.1.0 … … 1165 1165 1166 1166 /** 1167 * Retrieve the permalink for a post type archive feed.1167 * Retrieves the permalink for a post type archive feed. 1168 1168 * 1169 1169 * @since 3.1.0 … … 1192 1192 1193 1193 /** 1194 * Filter the post type archive feed link.1194 * Filters the post type archive feed link. 1195 1195 * 1196 1196 * @since 3.1.0 … … 1203 1203 1204 1204 /** 1205 * Retrieve URL used for the post preview.1205 * Retrieves the URL used for the post preview. 1206 1206 * 1207 1207 * Get the preview post URL. Allows additional query args to be appended. … … 1231 1231 1232 1232 /** 1233 * Filter the URL used for a post preview.1233 * Filters the URL used for a post preview. 1234 1234 * 1235 1235 * @since 2.0.5 … … 1243 1243 1244 1244 /** 1245 * Retrieve edit postslink for post.1245 * Retrieves the edit post link for post. 1246 1246 * 1247 1247 * Can be used within the WordPress loop or outside of it. Can be used with … … 1280 1280 1281 1281 /** 1282 * Filter the post edit link.1282 * Filters the post edit link. 1283 1283 * 1284 1284 * @since 2.3.0 … … 1293 1293 1294 1294 /** 1295 * Display edit post link for post.1295 * Displays the edit post link for post. 1296 1296 * 1297 1297 * @since 1.0.0 … … 1320 1320 1321 1321 /** 1322 * Filter the post edit link anchor tag.1322 * Filters the post edit link anchor tag. 1323 1323 * 1324 1324 * @since 2.3.0 … … 1332 1332 1333 1333 /** 1334 * Retrieve delete posts link for post.1334 * Retrieves the delete posts link for post. 1335 1335 * 1336 1336 * Can be used within the WordPress loop or outside of it, with any post type. … … 1362 1362 1363 1363 /** 1364 * Filter the post delete link.1364 * Filters the post delete link. 1365 1365 * 1366 1366 * @since 2.9.0 … … 1374 1374 1375 1375 /** 1376 * Retrieve edit comment link.1376 * Retrieves the edit comment link. 1377 1377 * 1378 1378 * @since 2.3.0 … … 1400 1400 1401 1401 /** 1402 * Display edit comment link with formatting.1402 * Displays the edit comment link with formatting. 1403 1403 * 1404 1404 * @since 1.0.0 … … 1422 1422 1423 1423 /** 1424 * Filter the comment edit link anchor tag.1424 * Filters the comment edit link anchor tag. 1425 1425 * 1426 1426 * @since 2.3.0 … … 1434 1434 1435 1435 /** 1436 * Display edit bookmark link.1436 * Displays the edit bookmark link. 1437 1437 * 1438 1438 * @since 2.7.0 … … 1461 1461 1462 1462 /** 1463 * Display edit bookmark link anchor content.1463 * Displays the edit bookmark link anchor content. 1464 1464 * 1465 1465 * @since 2.7.0 … … 1482 1482 1483 1483 /** 1484 * Filter the bookmark edit link anchor tag.1484 * Filters the bookmark edit link anchor tag. 1485 1485 * 1486 1486 * @since 2.7.0 … … 1493 1493 1494 1494 /** 1495 * Retrieve edit user link1495 * Retrieves the edit user link. 1496 1496 * 1497 1497 * @since 3.5.0 … … 1531 1531 1532 1532 /** 1533 * Retrieve previous post that is adjacent tocurrent post.1533 * Retrieves the previous post that is adjacent to the current post. 1534 1534 * 1535 1535 * @since 1.5.0 … … 1545 1545 1546 1546 /** 1547 * Retrieve next post that is adjacent tocurrent post.1547 * Retrieves the next post that is adjacent to the current post. 1548 1548 * 1549 1549 * @since 1.5.0 … … 1559 1559 1560 1560 /** 1561 * Retrieve adjacent post.1561 * Retrieves the adjacent post. 1562 1562 * 1563 1563 * Can either be next or previous post. … … 1617 1617 1618 1618 /** 1619 * Filter the IDs of terms excluded from adjacent post queries.1619 * Filters the IDs of terms excluded from adjacent post queries. 1620 1620 * 1621 1621 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 1667 1667 1668 1668 /** 1669 * Filter the JOIN clause in the SQL for an adjacent post query.1669 * Filters the JOIN clause in the SQL for an adjacent post query. 1670 1670 * 1671 1671 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 1684 1684 1685 1685 /** 1686 * Filter the WHERE clause in the SQL for an adjacent post query.1686 * Filters the WHERE clause in the SQL for an adjacent post query. 1687 1687 * 1688 1688 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 1701 1701 1702 1702 /** 1703 * Filter the ORDER BY clause in the SQL for an adjacent post query.1703 * Filters the ORDER BY clause in the SQL for an adjacent post query. 1704 1704 * 1705 1705 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 1736 1736 1737 1737 /** 1738 * Getadjacent post relational link.1738 * Retrieves the adjacent post relational link. 1739 1739 * 1740 1740 * Can either be next or previous post relational link. … … 1775 1775 1776 1776 /** 1777 * Filter the adjacent post relational link.1777 * Filters the adjacent post relational link. 1778 1778 * 1779 1779 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 1788 1788 1789 1789 /** 1790 * Display relational links for the posts adjacent to the current post.1790 * Displays the relational links for the posts adjacent to the current post. 1791 1791 * 1792 1792 * @since 2.8.0 … … 1803 1803 1804 1804 /** 1805 * Display relational links for the posts adjacent to the current post for single post pages.1805 * Displays relational links for the posts adjacent to the current post for single post pages. 1806 1806 * 1807 1807 * This is meant to be attached to actions like 'wp_head'. Do not call this directly in plugins or theme templates. … … 1817 1817 1818 1818 /** 1819 * Display relational link for the next post adjacent to the current post.1819 * Displays the relational link for the next post adjacent to the current post. 1820 1820 * 1821 1821 * @since 2.8.0 … … 1831 1831 1832 1832 /** 1833 * Display relational link for the previous post adjacent to the current post.1833 * Displays the relational link for the previous post adjacent to the current post. 1834 1834 * 1835 1835 * @since 2.8.0 … … 1845 1845 1846 1846 /** 1847 * Retrieve boundary post.1847 * Retrieves the boundary post. 1848 1848 * 1849 1849 * Boundary being either the first or last post by publish date within the constraints specified … … 1903 1903 1904 1904 /** 1905 * Getprevious post link that is adjacent to the current post.1905 * Retrieves the previous post link that is adjacent to the current post. 1906 1906 * 1907 1907 * @since 3.7.0 … … 1919 1919 1920 1920 /** 1921 * Display previous post link that is adjacent to the current post.1921 * Displays the previous post link that is adjacent to the current post. 1922 1922 * 1923 1923 * @since 1.5.0 1924 * 1924 1925 * @see get_previous_post_link() 1925 1926 * … … 1935 1936 1936 1937 /** 1937 * Getnext post link that is adjacent to the current post.1938 * Retrieves the next post link that is adjacent to the current post. 1938 1939 * 1939 1940 * @since 3.7.0 … … 1951 1952 1952 1953 /** 1953 * Display next post link that is adjacent to the current post.1954 * Displays the next post link that is adjacent to the current post. 1954 1955 * 1955 1956 * @since 1.5.0 … … 1967 1968 1968 1969 /** 1969 * Getadjacent post link.1970 * Retrieves the adjacent post link. 1970 1971 * 1971 1972 * Can be either next post link or previous. … … 2012 2013 2013 2014 /** 2014 * Filter the adjacent post link.2015 * Filters the adjacent post link. 2015 2016 * 2016 2017 * The dynamic portion of the hook name, `$adjacent`, refers to the type … … 2030 2031 2031 2032 /** 2032 * Display adjacent post link.2033 * Displays the adjacent post link. 2033 2034 * 2034 2035 * Can be either next post link or previous. … … 2048 2049 2049 2050 /** 2050 * Retrieve links for page numbers.2051 * Retrieves the link for a page number. 2051 2052 * 2052 2053 * @since 1.5.0 … … 2109 2110 2110 2111 /** 2111 * Filter the page number link for the current request.2112 * Filters the page number link for the current request. 2112 2113 * 2113 2114 * @since 2.5.0 … … 2124 2125 2125 2126 /** 2126 * Retrieve next posts page link.2127 * Retrieves the next posts page link. 2127 2128 * 2128 2129 * Backported from 2.1.3 to 2.0.10. … … 2148 2149 2149 2150 /** 2150 * Display or returnthe next posts page link.2151 * Displays or retrieves the next posts page link. 2151 2152 * 2152 2153 * @since 0.71 … … 2166 2167 2167 2168 /** 2168 * Ret urnthe next posts page link.2169 * Retrieves the next posts page link. 2169 2170 * 2170 2171 * @since 2.7.0 … … 2206 2207 2207 2208 /** 2208 * Display the next posts page link.2209 * Displays the next posts page link. 2209 2210 * 2210 2211 * @since 0.71 … … 2218 2219 2219 2220 /** 2220 * Retrieve previous posts page link.2221 * Retrieves the previous posts page link. 2221 2222 * 2222 2223 * Will only return string, if not on a single page or post. … … 2242 2243 2243 2244 /** 2244 * Display or returnthe previous posts page link.2245 * Displays or retrieves the previous posts page link. 2245 2246 * 2246 2247 * @since 0.71 … … 2259 2260 2260 2261 /** 2261 * Ret urnthe previous posts page link.2262 * Retrieves the previous posts page link. 2262 2263 * 2263 2264 * @since 2.7.0 … … 2288 2289 2289 2290 /** 2290 * Display the previous posts page link.2291 * Displays the previous posts page link. 2291 2292 * 2292 2293 * @since 0.71 … … 2299 2300 2300 2301 /** 2301 * Ret urnpost pages link navigation for previous and next pages.2302 * Retrieves the post pages link navigation for previous and next pages. 2302 2303 * 2303 2304 * @since 2.8.0 … … 2340 2341 2341 2342 /** 2342 * Display post pages link navigation for previous and next pages.2343 * Displays the post pages link navigation for previous and next pages. 2343 2344 * 2344 2345 * @since 0.71 … … 2354 2355 2355 2356 /** 2356 * Ret urn navigation to next/previous postwhen applicable.2357 * Retrieves the navigation to next/previous post, when applicable. 2357 2358 * 2358 2359 * @since 4.1.0 … … 2408 2409 2409 2410 /** 2410 * Display navigation to next/previous postwhen applicable.2411 * Displays the navigation to next/previous post, when applicable. 2411 2412 * 2412 2413 * @since 4.1.0 … … 2420 2421 2421 2422 /** 2422 * Return navigation to next/previous set of postswhen applicable.2423 * Returns the navigation to next/previous set of posts, when applicable. 2423 2424 * 2424 2425 * @since 4.1.0 … … 2467 2468 2468 2469 /** 2469 * Display navigation to next/previous set of postswhen applicable.2470 * Displays the navigation to next/previous set of posts, when applicable. 2470 2471 * 2471 2472 * @since 4.1.0 … … 2479 2480 2480 2481 /** 2481 * Return a paginated navigation to next/previous set of posts, 2482 * when applicable. 2482 * Retrieves a paginated navigation to next/previous set of posts, when applicable. 2483 2483 * 2484 2484 * @since 4.1.0 … … 2521 2521 2522 2522 /** 2523 * Display a paginated navigation to next/previous set of posts, 2524 * when applicable. 2523 * Displays a paginated navigation to next/previous set of posts, when applicable. 2525 2524 * 2526 2525 * @since 4.1.0 … … 2556 2555 2557 2556 /** 2558 * Filter the navigation markup template.2557 * Filters the navigation markup template. 2559 2558 * 2560 2559 * Note: The filtered template HTML must contain specifiers for the navigation … … 2579 2578 2580 2579 /** 2581 * Retrieve comments page number link.2580 * Retrieves the comments page number link. 2582 2581 * 2583 2582 * @since 2.7.0 … … 2613 2612 2614 2613 /** 2615 * Filter the comments page number link for the current request.2614 * Filters the comments page number link for the current request. 2616 2615 * 2617 2616 * @since 2.7.0 … … 2623 2622 2624 2623 /** 2625 * Ret urn the link tonext comments page.2624 * Retrieves the link to the next comments page. 2626 2625 * 2627 2626 * @since 2.7.1 … … 2660 2659 2661 2660 /** 2662 * Filter the anchor tag attributes for the next comments page link.2661 * Filters the anchor tag attributes for the next comments page link. 2663 2662 * 2664 2663 * @since 2.7.0 … … 2670 2669 2671 2670 /** 2672 * Display the link tonext comments page.2671 * Displays the link to the next comments page. 2673 2672 * 2674 2673 * @since 2.7.0 … … 2682 2681 2683 2682 /** 2684 * Ret urn the previous comments page link.2683 * Retrieves the link to the previous comments page. 2685 2684 * 2686 2685 * @since 2.7.1 … … 2714 2713 2715 2714 /** 2716 * Display the previous comments page link.2715 * Displays the link to the previous comments page. 2717 2716 * 2718 2717 * @since 2.7.0 … … 2725 2724 2726 2725 /** 2727 * Createpagination links for the comments on the current post.2726 * Displays or retrieves pagination links for the comments on the current post. 2728 2727 * 2729 2728 * @see paginate_links() … … 2766 2765 2767 2766 /** 2768 * Ret urns navigation to next/previous set of commentswhen applicable.2767 * Retrieves navigation to next/previous set of comments, when applicable. 2769 2768 * 2770 2769 * @since 4.4.0 … … 2808 2807 2809 2808 /** 2810 * Displays navigation to next/previous set of comments when applicable.2809 * Displays navigation to next/previous set of comments, when applicable. 2811 2810 * 2812 2811 * @since 4.4.0 … … 2819 2818 2820 2819 /** 2821 * Returns a paginated navigation to next/previous set of comments, 2822 * when applicable. 2820 * Retrieves a paginated navigation to next/previous set of comments, when applicable. 2823 2821 * 2824 2822 * @since 4.4.0 … … 2853 2851 2854 2852 /** 2855 * Displays a paginated navigation to next/previous set of comments, 2856 * when applicable. 2853 * Displays a paginated navigation to next/previous set of comments, when applicable. 2857 2854 * 2858 2855 * @since 4.4.0 … … 2865 2862 2866 2863 /** 2867 * Retrieve the Press This bookmarklet link. 2868 * 2869 * Use this in 'a' element 'href' attribute. 2864 * Retrieves the Press This bookmarklet link. 2870 2865 * 2871 2866 * @since 2.6.0 … … 2885 2880 2886 2881 if ( $is_IE ) { 2887 /* *2882 /* 2888 2883 * Return the old/shorter bookmarklet code for MSIE 8 and lower, 2889 2884 * since they only support a max length of ~2000 characters for … … 2917 2912 2918 2913 /** 2919 * Filter the Press This bookmarklet link.2914 * Filters the Press This bookmarklet link. 2920 2915 * 2921 2916 * @since 2.6.0 … … 2927 2922 2928 2923 /** 2929 * Retrieve the URL for the current site where the front end is accessible.2924 * Retrieves the URL for the current site where the front end is accessible. 2930 2925 * 2931 2926 * Returns the 'home' option with the appropriate protocol, 'https' if … … 2945 2940 2946 2941 /** 2947 * Retrieve the URL for a given site where the front end is accessible.2942 * Retrieves the URL for a given site where the front end is accessible. 2948 2943 * 2949 2944 * Returns the 'home' option with the appropriate protocol, 'https' if … … 2988 2983 2989 2984 /** 2990 * Filter the home URL.2985 * Filters the home URL. 2991 2986 * 2992 2987 * @since 3.0.0 … … 3002 2997 3003 2998 /** 3004 * Retrieve the URL for the current site where WordPress application files2999 * Retrieves the URL for the current site where WordPress application files 3005 3000 * (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible. 3006 3001 * … … 3020 3015 3021 3016 /** 3022 * Retrieve the URL for a given site where WordPress application files3017 * Retrieves the URL for a given site where WordPress application files 3023 3018 * (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible. 3024 3019 * … … 3051 3046 3052 3047 /** 3053 * Filter the site URL.3048 * Filters the site URL. 3054 3049 * 3055 3050 * @since 2.7.0 … … 3065 3060 3066 3061 /** 3067 * Retrieve the urlto the admin area for the current site.3062 * Retrieves the URL to the admin area for the current site. 3068 3063 * 3069 3064 * @since 2.6.0 … … 3078 3073 3079 3074 /** 3080 * Retrieves the urlto the admin area for a given site.3075 * Retrieves the URL to the admin area for a given site. 3081 3076 * 3082 3077 * @since 3.0.0 … … 3096 3091 3097 3092 /** 3098 * Filter the admin area URL.3093 * Filters the admin area URL. 3099 3094 * 3100 3095 * @since 2.8.0 … … 3108 3103 3109 3104 /** 3110 * Retrieve the urlto the includes directory.3105 * Retrieves the URL to the includes directory. 3111 3106 * 3112 3107 * @since 2.6.0 … … 3123 3118 3124 3119 /** 3125 * Filter the URL to the includes directory.3120 * Filters the URL to the includes directory. 3126 3121 * 3127 3122 * @since 2.8.0 … … 3135 3130 3136 3131 /** 3137 * Retrieve the urlto the content directory.3132 * Retrieves the URL to the content directory. 3138 3133 * 3139 3134 * @since 2.6.0 … … 3149 3144 3150 3145 /** 3151 * Filter the URL to the content directory.3146 * Filters the URL to the content directory. 3152 3147 * 3153 3148 * @since 2.8.0 … … 3161 3156 3162 3157 /** 3163 * Retrieve a URL within the plugins or mu-plugins directory.3158 * Retrieves a URL within the plugins or mu-plugins directory. 3164 3159 * 3165 3160 * Defaults to the plugins directory URL if no arguments are supplied. … … 3198 3193 3199 3194 /** 3200 * Filter the URL to the plugins directory.3195 * Filters the URL to the plugins directory. 3201 3196 * 3202 3197 * @since 2.8.0 … … 3212 3207 3213 3208 /** 3214 * Retrieve the site urlfor the current network.3209 * Retrieves the site URL for the current network. 3215 3210 * 3216 3211 * Returns the site url with the appropriate protocol, 'https' if … … 3239 3234 3240 3235 /** 3241 * Filter the network site URL.3236 * Filters the network site URL. 3242 3237 * 3243 3238 * @since 3.0.0 … … 3253 3248 3254 3249 /** 3255 * Retrieves the home urlfor the current network.3250 * Retrieves the home URL for the current network. 3256 3251 * 3257 3252 * Returns the home url with the appropriate protocol, 'https' {@see is_ssl()} … … 3285 3280 3286 3281 /** 3287 * Filter the network home URL.3282 * Filters the network home URL. 3288 3283 * 3289 3284 * @since 3.0.0 … … 3299 3294 3300 3295 /** 3301 * Retrieve the urlto the admin area for the network.3296 * Retrieves the URL to the admin area for the network. 3302 3297 * 3303 3298 * @since 3.0.0 … … 3317 3312 3318 3313 /** 3319 * Filter the network admin URL.3314 * Filters the network admin URL. 3320 3315 * 3321 3316 * @since 3.0.0 … … 3329 3324 3330 3325 /** 3331 * Retrieve the urlto the admin area for the current user.3326 * Retrieves the URL to the admin area for the current user. 3332 3327 * 3333 3328 * @since 3.0.0 … … 3344 3339 3345 3340 /** 3346 * Filter the user admin URL for the current user.3341 * Filters the user admin URL for the current user. 3347 3342 * 3348 3343 * @since 3.1.0 … … 3356 3351 3357 3352 /** 3358 * Retrieve the urlto the admin area for either the current site or the network depending on context.3353 * Retrieves the URL to the admin area for either the current site or the network depending on context. 3359 3354 * 3360 3355 * @since 3.1.0 … … 3408 3403 3409 3404 /** 3410 * Filter the resulting URL after setting the scheme.3405 * Filters the resulting URL after setting the scheme. 3411 3406 * 3412 3407 * @since 3.4.0 … … 3421 3416 3422 3417 /** 3423 * Getthe URL to the user's dashboard.3418 * Retrieves the URL to the user's dashboard. 3424 3419 * 3425 3420 * If a user does not belong to any site, the global user dashboard is used. If the user belongs to the current site, … … 3456 3451 3457 3452 /** 3458 * Filter the dashboard URL for a user.3453 * Filters the dashboard URL for a user. 3459 3454 * 3460 3455 * @since 3.1.0 … … 3470 3465 3471 3466 /** 3472 * Getthe URL to the user's profile editor.3467 * Retrieves the URL to the user's profile editor. 3473 3468 * 3474 3469 * @since 3.1.0 … … 3490 3485 3491 3486 /** 3492 * Filter the URL for a user's profile editor.3487 * Filters the URL for a user's profile editor. 3493 3488 * 3494 3489 * @since 3.1.0 … … 3503 3498 3504 3499 /** 3505 * Output rel=canonical for singular queries.3500 * Outputs rel=canonical for singular queries. 3506 3501 * 3507 3502 * @since 2.9.0 … … 3535 3530 3536 3531 /** 3537 * Return a shortlink for a post, page, attachment, or asite.3532 * Returns a shortlink for a post, page, attachment, or site. 3538 3533 * 3539 3534 * This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to … … 3554 3549 function wp_get_shortlink($id = 0, $context = 'post', $allow_slugs = true) { 3555 3550 /** 3556 * Filter whether to preempt generating a shortlink for the given post.3551 * Filters whether to preempt generating a shortlink for the given post. 3557 3552 * 3558 3553 * Passing a truthy value to the filter will effectively short-circuit the … … 3596 3591 3597 3592 /** 3598 * Filter the shortlink for a post.3593 * Filters the shortlink for a post. 3599 3594 * 3600 3595 * @since 3.0.0 … … 3609 3604 3610 3605 /** 3611 * Inject rel=shortlink intohead if a shortlink is defined for the current page.3612 * 3613 * 3606 * Injects rel=shortlink into the head if a shortlink is defined for the current page. 3607 * 3608 * Attached to the wp_head action. 3614 3609 * 3615 3610 * @since 3.0.0 … … 3625 3620 3626 3621 /** 3627 * Send a Link: rel=shortlink header if a shortlink is defined for the current page.3622 * Sends a Link: rel=shortlink header if a shortlink is defined for the current page. 3628 3623 * 3629 3624 * Attached to the wp action. … … 3644 3639 3645 3640 /** 3646 * Display the Short Link for a Post3641 * Displays the shortlink for a post. 3647 3642 * 3648 3643 * Must be called from inside "The Loop" … … 3672 3667 3673 3668 /** 3674 * Filter the shortlink anchor tag for a post.3669 * Filters the short link anchor tag for a post. 3675 3670 * 3676 3671 * @since 3.0.0 … … 3688 3683 3689 3684 /** 3690 * Retrieve the avatar URL.3685 * Retrieves the avatar URL. 3691 3686 * 3692 3687 * @since 4.2.0 … … 3720 3715 3721 3716 /** 3722 * Retrieve default data about the avatar.3717 * Retrieves default data about the avatar. 3723 3718 * 3724 3719 * @since 4.2.0 … … 3817 3812 3818 3813 /** 3819 * Filter whether to retrieve the avatar URL early.3814 * Filters whether to retrieve the avatar URL early. 3820 3815 * 3821 3816 * Passing a non-null value in the 'url' member of the return array will … … 3919 3914 3920 3915 /** 3921 * Filter the avatar URL.3916 * Filters the avatar URL. 3922 3917 * 3923 3918 * @since 4.2.0 … … 3931 3926 3932 3927 /** 3933 * Filter the avatar data.3928 * Filters the avatar data. 3934 3929 * 3935 3930 * @since 4.2.0
Note: See TracChangeset
for help on using the changeset viewer.