From c72ea72c2545bd371126cda12944d54d68ce74d0 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 4 Oct 2022 22:59:58 +0000 Subject: [PATCH] Docs: Various docblock fixes in `WP_Rewrite` class, as per documentation standards. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54391 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-rewrite.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index c5ba216f27..7288d0ef57 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -413,7 +413,7 @@ class WP_Rewrite { } /** - * Retrieves all page and attachments for pages URIs. + * Retrieves all pages and attachments for pages URIs. * * The attachments are for those that have pages as parents and will be * retrieved. @@ -616,7 +616,7 @@ class WP_Rewrite { } /** - * Retrieve the permalink structure for tags. + * Retrieves the permalink structure for tags. * * If the tag_base property has no value, then the tag structure will have * the front property value, followed by 'tag', and finally '%tag%'. If it @@ -861,7 +861,7 @@ class WP_Rewrite { * Default `EP_NONE`. * @param bool $paged Optional. Whether archive pagination rules should be added for the structure. * Default true. - * @param bool $feed Optional Whether feed rewrite rules should be added for the structure. + * @param bool $feed Optional. Whether feed rewrite rules should be added for the structure. * Default true. * @param bool $forcomments Optional. Whether the feed rules should be a query for a comments feed. * Default false. @@ -1245,7 +1245,7 @@ class WP_Rewrite { * @param string $permalink_structure The permalink structure to generate rules. * @param bool $walk_dirs Optional. Whether to create list of directories to walk over. * Default false. - * @return array + * @return array An array of rewrite rules keyed by their regex pattern. */ public function generate_rewrite_rule( $permalink_structure, $walk_dirs = false ) { return $this->generate_rewrite_rules( $permalink_structure, EP_NONE, false, false, false, $walk_dirs );