Skip to content

Commit

Permalink
Docs: Use third-person singular verbs for function descriptions in `w…
Browse files Browse the repository at this point in the history
…p-includes/rewrite.php`, per the documentation standards.

See #54729.

Built from https://develop.svn.wordpress.org/trunk@52994


git-svn-id: http://core.svn.wordpress.org/trunk@52583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
audrasjb committed Mar 25, 2022
1 parent 876dde2 commit e2bf0e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions wp-includes/rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -191,7 +191,7 @@ function remove_rewrite_tag( $tag ) {
}

/**
* Add permalink structure.
* Adds a permalink structure.
*
* @since 3.0.0
*
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52993';
$wp_version = '6.0-alpha-52994';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit e2bf0e9

Please sign in to comment.