mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user