Properly mark the `$query_var` parameter as optional in the DocBlock for `WP_Rewrite->add_endpoint()`.

See #32246. See #32891.

Built from https://develop.svn.wordpress.org/trunk@33237


git-svn-id: http://core.svn.wordpress.org/trunk@33209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-07-13 21:55:24 +00:00
parent e6dd566b79
commit 6b5728c5b9
2 changed files with 4 additions and 3 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;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta2-33236'; $wp_version = '4.3-beta2-33237';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.