wp/wp-includes/class-wp-rewrite.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/class-wp-rewrite.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-rewrite.php	Tue Sep 27 16:37:53 2022 +0200
@@ -275,7 +275,7 @@
 	 * Additional tags can be added with add_rewrite_tag().
 	 *
 	 * @since 1.5.0
-	 * @var array
+	 * @var string[]
 	 */
 	public $rewritecode = array(
 		'%year%',
@@ -296,7 +296,7 @@
 	 * of rewrite tags, see WP_Rewrite::$rewritecode.
 	 *
 	 * @since 1.5.0
-	 * @var array
+	 * @var string[]
 	 */
 	public $rewritereplace = array(
 		'([0-9]{4})',
@@ -316,7 +316,7 @@
 	 * Query variables that rewrite tags map to, see WP_Rewrite::$rewritecode.
 	 *
 	 * @since 1.5.0
-	 * @var array
+	 * @var string[]
 	 */
 	public $queryreplace = array(
 		'year=',
@@ -336,7 +336,7 @@
 	 * Supported default feeds.
 	 *
 	 * @since 1.5.0
-	 * @var array
+	 * @var string[]
 	 */
 	public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
 
@@ -1173,7 +1173,7 @@
 
 					// Not matching a permalink so this is a lot simpler.
 				} else {
-					// Close the match and finalise the query.
+					// Close the match and finalize the query.
 					$match .= '?$';
 					$query  = $index . '?' . $query;
 				}
@@ -1315,7 +1315,7 @@
 		/**
 		 * Filters rewrite rules used for date archives.
 		 *
-		 * Likely date archives would include /yyyy/, /yyyy/mm/, and /yyyy/mm/dd/.
+		 * Likely date archives would include `/yyyy/`, `/yyyy/mm/`, and `/yyyy/mm/dd/`.
 		 *
 		 * @since 1.5.0
 		 *
@@ -1330,7 +1330,7 @@
 		 * Filters rewrite rules used for root-level archives.
 		 *
 		 * Likely root-level archives would include pagination rules for the homepage
-		 * as well as site-wide post feeds (e.g. /feed/, and /feed/atom/).
+		 * as well as site-wide post feeds (e.g. `/feed/`, and `/feed/atom/`).
 		 *
 		 * @since 1.5.0
 		 *
@@ -1344,7 +1344,7 @@
 		/**
 		 * Filters rewrite rules used for comment feed archives.
 		 *
-		 * Likely comments feed archives include /comments/feed/, and /comments/feed/atom/.
+		 * Likely comments feed archives include `/comments/feed/` and `/comments/feed/atom/`.
 		 *
 		 * @since 1.5.0
 		 *
@@ -1359,7 +1359,7 @@
 		/**
 		 * Filters rewrite rules used for search archives.
 		 *
-		 * Likely search-related archives include /search/search+query/ as well as
+		 * Likely search-related archives include `/search/search+query/` as well as
 		 * pagination and feed paths for a search.
 		 *
 		 * @since 1.5.0
@@ -1374,7 +1374,7 @@
 		/**
 		 * Filters rewrite rules used for author archives.
 		 *
-		 * Likely author archives would include /author/author-name/, as well as
+		 * Likely author archives would include `/author/author-name/`, as well as
 		 * pagination and feed paths for author archives.
 		 *
 		 * @since 1.5.0
@@ -1411,8 +1411,13 @@
 			 * Filters rewrite rules used for individual permastructs.
 			 *
 			 * The dynamic portion of the hook name, `$permastructname`, refers
-			 * to the name of the registered permastruct, e.g. 'post_tag' (tags),
-			 * 'category' (categories), etc.
+			 * to the name of the registered permastruct.
+			 *
+			 * Possible hook names include:
+			 *
+			 *  - `category_rewrite_rules`
+			 *  - `post_format_rewrite_rules`
+			 *  - `post_tag_rewrite_rules`
 			 *
 			 * @since 3.1.0
 			 *
@@ -1448,7 +1453,7 @@
 		 *
 		 * @since 1.5.0
 		 *
-		 * @param WP_Rewrite $this Current WP_Rewrite instance (passed by reference).
+		 * @param WP_Rewrite $wp_rewrite Current WP_Rewrite instance (passed by reference).
 		 */
 		do_action_ref_array( 'generate_rewrite_rules', array( &$this ) );