From f3f27f414fe6f0e5930a2353f11bdf974351dafb Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 25 Mar 2022 21:32:50 +0000 Subject: [PATCH] Docs: Use third-person singular verbs for function descriptions in `wp-includes/rewrite.php`, per the documentation standards. See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@52994 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rewrite.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php index 4a204c2601..ab23a1887c 100644 --- a/src/wp-includes/rewrite.php +++ b/src/wp-includes/rewrite.php @@ -144,7 +144,7 @@ function add_rewrite_rule( $regex, $query, $after = 'bottom' ) { } /** - * Add a new rewrite tag (like %postname%). + * Adds a new rewrite tag (like %postname%). * * The `$query` parameter is optional. If it is omitted you must ensure that you call * this on, or before, the {@see 'init'} hook. This is because `$query` defaults to @@ -191,7 +191,7 @@ function remove_rewrite_tag( $tag ) { } /** - * Add permalink structure. + * Adds a permalink structure. * * @since 3.0.0 * @@ -237,7 +237,7 @@ function remove_permastruct( $name ) { } /** - * Add a new feed type like /atom1/. + * Adds a new feed type like /atom1/. * * @since 2.1.0 * @@ -265,7 +265,7 @@ function add_feed( $feedname, $function ) { } /** - * Remove rewrite rules and then recreate rewrite rules. + * Removes rewrite rules and then recreate rewrite rules. * * @since 3.0.0 * @@ -283,7 +283,7 @@ function flush_rewrite_rules( $hard = true ) { } /** - * Add an endpoint, like /trackback/. + * Adds an endpoint, like /trackback/. * * Adding an endpoint creates extra rewrite rules for each of the matching * places specified by the provided bitmask. For example: @@ -357,7 +357,7 @@ function _wp_filter_taxonomy_base( $base ) { /** - * Resolve numeric slugs that collide with date permalinks. + * Resolves numeric slugs that collide with date permalinks. * * Permalinks of posts with numeric slugs can sometimes look to WP_Query::parse_query() * like a date archive, as when your permalink structure is `/%year%/%postname%/` and @@ -473,7 +473,7 @@ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) { } /** - * Examine a URL and try to determine the post ID it represents. + * Examines a URL and try to determine the post ID it represents. * * Checks are supposedly from the hosted site blog. *