### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/rewrite.php
===================================================================
--- wp-includes/rewrite.php	(revision 17587)
+++ wp-includes/rewrite.php	(working copy)
@@ -193,13 +193,27 @@
 define('EP_PAGES', 4096);
 
 /**
+ * Endpoint Mask for Custom Post Type Archives.
+ *
+ * @since 3.2.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);
 
 /**
+ * Endpoint Mask for all archive views.
+ *
+ * @since 3.2.0
+ */
+define('EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS | EP_CPT_ARCHIVE);
+
+/**
  * Add an endpoint, like /trackback/.
  *
  * The endpoints are added to the end of the request. So a request matching
@@ -212,8 +226,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 int $places Bitmask of URL-types (EP_* constants) endpoint is used for.
  */
 function add_rewrite_endpoint($name, $places) {
 	global $wp_rewrite;
@@ -1827,13 +1841,13 @@
 	/**
 	 * Add an 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 int $places Bitmask of URL-types (EP_* constants) endpoint is used for.
 	 */
 	function add_endpoint($name, $places) {
 		global $wp;
