<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[49670] trunk/src/wp-includes: Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/49670">49670</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/49670","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnbillion</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-11-19 16:13:54 +0000 (Thu, 19 Nov 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks.
See <a href="https://core.trac.wordpress.org/ticket/51800">#51800</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswprewritephp">trunk/src/wp-includes/class-wp-rewrite.php</a></li>
<li><a href="#trunksrcwpincludesrewritephp">trunk/src/wp-includes/rewrite.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswprewritephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-rewrite.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-rewrite.php 2020-11-19 15:18:28 UTC (rev 49669)
+++ trunk/src/wp-includes/class-wp-rewrite.php 2020-11-19 16:13:54 UTC (rev 49670)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -840,9 +840,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $permalink_structure The permalink structure.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $ep_mask Optional. Endpoint mask defining what endpoints are added to the structure.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`,
- * `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`,
- * `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts a mask of:
+ * - `EP_ALL`
+ * - `EP_NONE`
+ * - `EP_ALL_ARCHIVES`
+ * - `EP_ATTACHMENT`
+ * - `EP_AUTHORS`
+ * - `EP_CATEGORIES`
+ * - `EP_COMMENTS`
+ * - `EP_DATE`
+ * - `EP_DAY`
+ * - `EP_MONTH`
+ * - `EP_PAGES`
+ * - `EP_PERMALINK`
+ * - `EP_ROOT`
+ * - `EP_SEARCH`
+ * - `EP_TAGS`
+ * - `EP_YEAR`
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default `EP_NONE`.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $paged Optional. Whether archive pagination rules should be added for the structure.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1682,6 +1696,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $name Name of the endpoint.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $places Endpoint mask describing the places the endpoint should be added.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts a mask of:
+ * - `EP_ALL`
+ * - `EP_NONE`
+ * - `EP_ALL_ARCHIVES`
+ * - `EP_ATTACHMENT`
+ * - `EP_AUTHORS`
+ * - `EP_CATEGORIES`
+ * - `EP_COMMENTS`
+ * - `EP_DATE`
+ * - `EP_DAY`
+ * - `EP_MONTH`
+ * - `EP_PAGES`
+ * - `EP_PERMALINK`
+ * - `EP_ROOT`
+ * - `EP_SEARCH`
+ * - `EP_TAGS`
+ * - `EP_YEAR`
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to
</span><span class="cx" style="display: block; padding: 0 10px"> * skip registering a query_var for this endpoint. Defaults to the
</span><span class="cx" style="display: block; padding: 0 10px"> * value of `$name`.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1725,9 +1756,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $with_front Whether the structure should be prepended with `WP_Rewrite::$front`.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $ep_mask The endpoint mask defining which endpoints are added to the structure.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`,
- * `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`,
- * `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts a mask of:
+ * - `EP_ALL`
+ * - `EP_NONE`
+ * - `EP_ALL_ARCHIVES`
+ * - `EP_ATTACHMENT`
+ * - `EP_AUTHORS`
+ * - `EP_CATEGORIES`
+ * - `EP_COMMENTS`
+ * - `EP_DATE`
+ * - `EP_DAY`
+ * - `EP_MONTH`
+ * - `EP_PAGES`
+ * - `EP_PERMALINK`
+ * - `EP_ROOT`
+ * - `EP_SEARCH`
+ * - `EP_TAGS`
+ * - `EP_YEAR`
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default `EP_NONE`.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $paged Whether archive pagination rules should be added for the structure.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span></span></pre></div>
<a id="trunksrcwpincludesrewritephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rewrite.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rewrite.php 2020-11-19 15:18:28 UTC (rev 49669)
+++ trunk/src/wp-includes/rewrite.php 2020-11-19 16:13:54 UTC (rev 49670)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,7 +7,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for default, which is nothing.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches nothing.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,7 +14,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_NONE', 0 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for Permalink.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches post permalinks.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,7 +21,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_PERMALINK', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for Attachment.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches attachment permalinks.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -28,7 +28,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_ATTACHMENT', 2 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for date.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches any date archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,7 +35,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_DATE', 4 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for year
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches yearly archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,7 +42,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_YEAR', 8 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for month.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches monthly archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,7 +49,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_MONTH', 16 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for day.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches daily archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -56,7 +56,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_DAY', 32 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for root.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches the site root.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -63,7 +63,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_ROOT', 64 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for comments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches comment feeds.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,14 +70,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_COMMENTS', 128 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for searches.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches searches.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Note that this only matches a search at a "pretty" URL such as
+ * `/search/my-search-term`, not `?s=my-search-term`.
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_SEARCH', 256 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for categories.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches category archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,7 +87,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_CATEGORIES', 512 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for tags.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches tag archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -91,7 +94,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_TAGS', 1024 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for authors.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches author archives.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,7 +101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_AUTHORS', 2048 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for pages.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches pages.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,7 +108,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_PAGES', 4096 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for all archive views.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches all archive views.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,7 +115,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Endpoint Mask for everything.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Endpoint mask that matches everything.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -308,6 +311,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $name Name of the endpoint.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $places Endpoint mask describing the places the endpoint should be added.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts a mask of:
+ * - `EP_ALL`
+ * - `EP_NONE`
+ * - `EP_ALL_ARCHIVES`
+ * - `EP_ATTACHMENT`
+ * - `EP_AUTHORS`
+ * - `EP_CATEGORIES`
+ * - `EP_COMMENTS`
+ * - `EP_DATE`
+ * - `EP_DAY`
+ * - `EP_MONTH`
+ * - `EP_PAGES`
+ * - `EP_PERMALINK`
+ * - `EP_ROOT`
+ * - `EP_SEARCH`
+ * - `EP_TAGS`
+ * - `EP_YEAR`
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var
</span><span class="cx" style="display: block; padding: 0 10px"> * for this endpoint. Defaults to the value of `$name`.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre>
</div>
</div>
</body>
</html>