From b3544157ab218932e5b42d74d366c524d3616a7b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 13 Jul 2015 21:54:40 +0000 Subject: [PATCH] Properly mark the `$query_var` parameter as optional in the DocBlock for `WP_Rewrite->add_endpoint()`. See #32246. See #32891. git-svn-id: https://develop.svn.wordpress.org/trunk@33237 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rewrite.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php index 11ba83e0bf..a2ddc59038 100644 --- a/src/wp-includes/rewrite.php +++ b/src/wp-includes/rewrite.php @@ -2087,8 +2087,9 @@ class WP_Rewrite { * * @param string $name Name of the endpoint. * @param int $places Endpoint mask describing the places the endpoint should be added. - * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering - * a query_var for this endpoint. Defaults to the value of `$name`. + * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to + * skip registering a query_var for this endpoint. Defaults to the + * value of `$name`. */ public function add_endpoint( $name, $places, $query_var = true ) { global $wp;