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
This commit is contained in:
Drew Jaynes 2015-07-13 21:54:40 +00:00
parent f6ca434cd5
commit b3544157ab
1 changed files with 3 additions and 2 deletions

View File

@ -2087,8 +2087,9 @@ class WP_Rewrite {
* *
* @param string $name Name of the endpoint. * @param string $name Name of the endpoint.
* @param int $places Endpoint mask describing the places the endpoint should be added. * @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 * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to
* a query_var for this endpoint. Defaults to the value of `$name`. * skip registering a query_var for this endpoint. Defaults to the
* value of `$name`.
*/ */
public function add_endpoint( $name, $places, $query_var = true ) { public function add_endpoint( $name, $places, $query_var = true ) {
global $wp; global $wp;