Make WordPress Core


Ignore:
Timestamp:
11/19/2020 04:13:54 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks.

See #51800

File:
1 edited

Legend:

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

    r49108 r49670  
    88
    99/**
    10  * Endpoint Mask for default, which is nothing.
     10 * Endpoint mask that matches nothing.
    1111 *
    1212 * @since 2.1.0
     
    1515
    1616/**
    17  * Endpoint Mask for Permalink.
     17 * Endpoint mask that matches post permalinks.
    1818 *
    1919 * @since 2.1.0
     
    2222
    2323/**
    24  * Endpoint Mask for Attachment.
     24 * Endpoint mask that matches attachment permalinks.
    2525 *
    2626 * @since 2.1.0
     
    2929
    3030/**
    31  * Endpoint Mask for date.
     31 * Endpoint mask that matches any date archives.
    3232 *
    3333 * @since 2.1.0
     
    3636
    3737/**
    38  * Endpoint Mask for year
     38 * Endpoint mask that matches yearly archives.
    3939 *
    4040 * @since 2.1.0
     
    4343
    4444/**
    45  * Endpoint Mask for month.
     45 * Endpoint mask that matches monthly archives.
    4646 *
    4747 * @since 2.1.0
     
    5050
    5151/**
    52  * Endpoint Mask for day.
     52 * Endpoint mask that matches daily archives.
    5353 *
    5454 * @since 2.1.0
     
    5757
    5858/**
    59  * Endpoint Mask for root.
     59 * Endpoint mask that matches the site root.
    6060 *
    6161 * @since 2.1.0
     
    6464
    6565/**
    66  * Endpoint Mask for comments.
     66 * Endpoint mask that matches comment feeds.
    6767 *
    6868 * @since 2.1.0
     
    7171
    7272/**
    73  * Endpoint Mask for searches.
     73 * Endpoint mask that matches searches.
     74 *
     75 * Note that this only matches a search at a "pretty" URL such as
     76 * `/search/my-search-term`, not `?s=my-search-term`.
    7477 *
    7578 * @since 2.1.0
     
    7881
    7982/**
    80  * Endpoint Mask for categories.
     83 * Endpoint mask that matches category archives.
    8184 *
    8285 * @since 2.1.0
     
    8588
    8689/**
    87  * Endpoint Mask for tags.
     90 * Endpoint mask that matches tag archives.
    8891 *
    8992 * @since 2.3.0
     
    9295
    9396/**
    94  * Endpoint Mask for authors.
     97 * Endpoint mask that matches author archives.
    9598 *
    9699 * @since 2.1.0
     
    99102
    100103/**
    101  * Endpoint Mask for pages.
     104 * Endpoint mask that matches pages.
    102105 *
    103106 * @since 2.1.0
     
    106109
    107110/**
    108  * Endpoint Mask for all archive views.
     111 * Endpoint mask that matches all archive views.
    109112 *
    110113 * @since 3.7.0
     
    113116
    114117/**
    115  * Endpoint Mask for everything.
     118 * Endpoint mask that matches everything.
    116119 *
    117120 * @since 2.1.0
     
    309312 * @param string      $name      Name of the endpoint.
    310313 * @param int         $places    Endpoint mask describing the places the endpoint should be added.
     314 *                               Accepts a mask of:
     315 *                               - `EP_ALL`
     316 *                               - `EP_NONE`
     317 *                               - `EP_ALL_ARCHIVES`
     318 *                               - `EP_ATTACHMENT`
     319 *                               - `EP_AUTHORS`
     320 *                               - `EP_CATEGORIES`
     321 *                               - `EP_COMMENTS`
     322 *                               - `EP_DATE`
     323 *                               - `EP_DAY`
     324 *                               - `EP_MONTH`
     325 *                               - `EP_PAGES`
     326 *                               - `EP_PERMALINK`
     327 *                               - `EP_ROOT`
     328 *                               - `EP_SEARCH`
     329 *                               - `EP_TAGS`
     330 *                               - `EP_YEAR`
    311331 * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var
    312332 *                               for this endpoint. Defaults to the value of `$name`.
Note: See TracChangeset for help on using the changeset viewer.