Docs: Miscellaneous DocBlock corrections.

See #53399.
Built from https://develop.svn.wordpress.org/trunk@52242


git-svn-id: http://core.svn.wordpress.org/trunk@51834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2021-11-24 23:59:59 +00:00
parent 91c7a9ba2a
commit dfdbbb4e62
4 changed files with 12 additions and 7 deletions

View File

@@ -3056,7 +3056,8 @@ function rest_default_additional_properties_to_false( $schema ) {
* @since 5.5.0
*
* @param int|WP_Post $post Post ID or post object.
* @return string The route path with a leading slash for the given post, or an empty string if there is not a route.
* @return string The route path with a leading slash for the given post,
* or an empty string if there is not a route.
*/
function rest_get_route_for_post( $post ) {
$post = get_post( $post );
@@ -3089,7 +3090,8 @@ function rest_get_route_for_post( $post ) {
* @since 5.9.0
*
* @param string $post_type The name of a registered post type.
* @return string The route path with a leading slash for the given post type, or an empty string if there is not a route.
* @return string The route path with a leading slash for the given post type,
* or an empty string if there is not a route.
*/
function rest_get_route_for_post_type_items( $post_type ) {
$post_type = get_post_type_object( $post_type );
@@ -3122,7 +3124,8 @@ function rest_get_route_for_post_type_items( $post_type ) {
* @since 5.5.0
*
* @param int|WP_Term $term Term ID or term object.
* @return string The route path with a leading slash for the given term, or an empty string if there is not a route.
* @return string The route path with a leading slash for the given term,
* or an empty string if there is not a route.
*/
function rest_get_route_for_term( $term ) {
$term = get_term( $term );