Make WordPress Core


Ignore:
Timestamp:
11/24/2021 11:58:20 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Miscellaneous DocBlock corrections.

See #53399.

File:
1 edited

Legend:

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

    r52133 r52242  
    30573057 *
    30583058 * @param int|WP_Post $post Post ID or post object.
    3059  * @return string The route path with a leading slash for the given post, or an empty string if there is not a route.
     3059 * @return string The route path with a leading slash for the given post,
     3060 *                or an empty string if there is not a route.
    30603061 */
    30613062function rest_get_route_for_post( $post ) {
     
    30903091 *
    30913092 * @param string $post_type The name of a registered post type.
    3092  * @return string The route path with a leading slash for the given post type, or an empty string if there is not a route.
     3093 * @return string The route path with a leading slash for the given post type,
     3094 *                or an empty string if there is not a route.
    30933095 */
    30943096function rest_get_route_for_post_type_items( $post_type ) {
     
    31233125 *
    31243126 * @param int|WP_Term $term Term ID or term object.
    3125  * @return string The route path with a leading slash for the given term, or an empty string if there is not a route.
     3127 * @return string The route path with a leading slash for the given term,
     3128 *                or an empty string if there is not a route.
    31263129 */
    31273130function rest_get_route_for_term( $term ) {
Note: See TracChangeset for help on using the changeset viewer.