WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2019 01:18:54 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $wp_rewrite global.

See #45604, #47110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r45590 r45735  
    3838 * @since 2.2.0
    3939 *
    40  * @global WP_Rewrite $wp_rewrite
     40 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    4141 *
    4242 * @param string $string      URL with or without a trailing slash.
     
    253253 * @since 3.0.0
    254254 *
    255  * @global WP_Rewrite $wp_rewrite
     255 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    256256 *
    257257 * @param int|WP_Post $id        Optional. Post ID or post object. Default is the global `$post`.
     
    356356 * @access private
    357357 *
    358  * @global WP_Rewrite $wp_rewrite
     358 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    359359 *
    360360 * @param int|WP_Post $post      Optional. Post ID or object. Default uses the global `$post`.
     
    402402 * @since 2.0.0
    403403 *
    404  * @global WP_Rewrite $wp_rewrite
     404 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    405405 *
    406406 * @param int|object $post      Optional. Post ID or object. Default uses the global `$post`.
     
    463463 * @since 1.5.0
    464464 *
    465  * @global WP_Rewrite $wp_rewrite
     465 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    466466 *
    467467 * @param int|bool $year False for current year or year for permalink.
     
    497497 * @since 1.0.0
    498498 *
    499  * @global WP_Rewrite $wp_rewrite
     499 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    500500 *
    501501 * @param bool|int $year  False for current year. Integer of year.
     
    537537 * @since 1.0.0
    538538 *
    539  * @global WP_Rewrite $wp_rewrite
     539 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    540540 *
    541541 * @param bool|int $year  False for current year. Integer of year.
     
    607607 * @since 1.5.0
    608608 *
    609  * @global WP_Rewrite $wp_rewrite
     609 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    610610 *
    611611 * @param string $feed Optional. Feed type. Default empty.
     
    10771077 * @since  3.0.0
    10781078 *
    1079  * @global WP_Rewrite $wp_rewrite
     1079 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    10801080 *
    10811081 * @param string $query Optional. The query string to use. If empty the current query is used. Default empty.
     
    11181118 * @since 2.5.0
    11191119 *
    1120  * @global WP_Rewrite $wp_rewrite
     1120 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    11211121 *
    11221122 * @param string $search_query Optional. Search query. Default empty.
     
    11581158 * @since 2.5.0
    11591159 *
    1160  * @global WP_Rewrite $wp_rewrite
     1160 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    11611161 *
    11621162 * @param string $search_query Optional. Search query. Default empty.
     
    11911191 * @since 4.5.0 Support for posts was added.
    11921192 *
    1193  * @global WP_Rewrite $wp_rewrite
     1193 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    11941194 *
    11951195 * @param string $post_type Post type.
     
    21972197 * @since 1.5.0
    21982198 *
    2199  * @global WP_Rewrite $wp_rewrite
     2199 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    22002200 *
    22012201 * @param int  $pagenum Optional. Page number. Default 1.
     
    27562756 * @since 2.7.0
    27572757 *
    2758  * @global WP_Rewrite $wp_rewrite
     2758 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    27592759 *
    27602760 * @param int $pagenum  Optional. Page number. Default 1.
     
    29132913 * @since 2.7.0
    29142914 *
    2915  * @global WP_Rewrite $wp_rewrite
     2915 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    29162916 *
    29172917 * @param string|array $args Optional args. See paginate_links(). Default empty array.
Note: See TracChangeset for help on using the changeset viewer.