### Eclipse Workspace Patch 1.0
#P trunk.domain
Index: public/wp-includes/rewrite.php
===================================================================
--- public/wp-includes/rewrite.php	(revision 17327)
+++ public/wp-includes/rewrite.php	(working copy)
@@ -193,14 +193,29 @@
 define('EP_PAGES', 4096);
 
 /**
+ * Endpoint Mask for Custom Post Type Archives.
+ *
+ * @since 3.1.0
+ */
+define('EP_CPT_ARCHIVE', 8192);
+
+/**
  * Endpoint Mask for everything.
  *
  * @since 2.1.0
  */
-define('EP_ALL', 8191);
+define('EP_ALL', 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_CPT_ARCHIVE);
 
 /**
- * Add an endpoint, like /trackback/.
+ * Endpoint Mask for all archive views.
+ *
+ * @since 3.1.0
+ */
+define('EP_ALL_ARCHIVES', EP_DATE ^ EP_YEAR ^ EP_MONTH ^ EP_DAY ^ EP_CATEGORIES ^ EP_TAGS ^ EP_AUTHORS ^ EP_CPT_ARCHIVE);
+
+
+/**
+ * Add a new endpoint, like /trackback/.
  *
  * The endpoints are added to the end of the request. So a request matching
  * "/2008/10/14/my_post/myep/", the endpoint will be "/myep/".
@@ -212,8 +227,8 @@
  * @see WP_Rewrite::add_endpoint() Parameters and more description.
  * @uses $wp_rewrite
  *
- * @param unknown_type $name
- * @param unknown_type $places
+ * @param string $name Name of endpoint.
+ * @param bitmask $places URL types that endpoint can be used OR'd bitmask of EP_*
  */
 function add_rewrite_endpoint($name, $places) {
 	global $wp_rewrite;
@@ -1825,15 +1840,15 @@
 	}
 
 	/**
-	 * Add an endpoint, like /trackback/.
+	 * Add a new endpoint, like /trackback/.
 	 *
-	 * To be inserted after certain URL types (specified in $places).
+	 * To be inserted after certain URL types.
 	 *
 	 * @since 2.1.0
 	 * @access public
 	 *
 	 * @param string $name Name of endpoint.
-	 * @param array $places URL types that endpoint can be used.
+	 * @param bitmask $places URL types that endpoint can be used OR'd bitmask of EP_*
 	 */
 	function add_endpoint($name, $places) {
 		global $wp;
