From 50309fa1e3bef1ce27b85484728909d7152f1e96 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 4 Oct 2022 23:01:13 +0000 Subject: [PATCH] Docs: Various docblock fixes in `WP_Rewrite` class, as per documentation standards. See #55646. Built from https://develop.svn.wordpress.org/trunk@54391 git-svn-id: http://core.svn.wordpress.org/trunk@53950 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-rewrite.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-rewrite.php b/wp-includes/class-wp-rewrite.php index c5ba216f27..7288d0ef57 100644 --- a/wp-includes/class-wp-rewrite.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index eb58c4f63e..b2b69607f8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta3-54390'; +$wp_version = '6.1-beta3-54391'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.