Fix PHPDoc formatting for `WP_Rewrite::add_endpoint()`.
See #27700. Built from https://develop.svn.wordpress.org/trunk@28014 git-svn-id: http://core.svn.wordpress.org/trunk@27844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
418aa98588
commit
f52aefd02b
|
@ -1955,17 +1955,16 @@ class WP_Rewrite {
|
||||||
/**
|
/**
|
||||||
* Add an endpoint, like /trackback/.
|
* Add an endpoint, like /trackback/.
|
||||||
*
|
*
|
||||||
* See {@link add_rewrite_endpoint()} for full documentation.
|
|
||||||
*
|
|
||||||
* @see add_rewrite_endpoint()
|
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* @since 3.9.0 $query_var parameter added.
|
* @since 3.9.0 $query_var parameter added.
|
||||||
* @access public
|
* @access public
|
||||||
|
*
|
||||||
|
* @see add_rewrite_endpoint() for full documentation.
|
||||||
* @uses WP::add_query_var()
|
* @uses WP::add_query_var()
|
||||||
*
|
*
|
||||||
* @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 $query_var Name of the corresponding query variable. Defaults to $name.
|
* @param string $query_var Name of the corresponding query variable. Default is value of $name.
|
||||||
*/
|
*/
|
||||||
function add_endpoint( $name, $places, $query_var = null ) {
|
function add_endpoint( $name, $places, $query_var = null ) {
|
||||||
global $wp;
|
global $wp;
|
||||||
|
|
Loading…
Reference in New Issue