Make WordPress Core


Ignore:
Timestamp:
07/13/2015 09:54:40 PM (11 years ago)
Author:
DrewAPicture
Message:

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

See #32246. See #32891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rewrite.php

    r33236 r33237  
    20882088         * @param string      $name      Name of the endpoint.
    20892089         * @param int         $places    Endpoint mask describing the places the endpoint should be added.
    2090          * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering
    2091          *                               a query_var for this endpoint. Defaults to the value of `$name`.
     2090         * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to
     2091         *                               skip registering a query_var for this endpoint. Defaults to the
     2092         *                               value of `$name`.
    20922093         */
    20932094        public function add_endpoint( $name, $places, $query_var = true ) {
Note: See TracChangeset for help on using the changeset viewer.