From b0f446b5ba8312d3865b7e597c811f79c18c7925 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sun, 28 Jul 2013 19:18:19 +0000 Subject: [PATCH] Introduce a new endpoint mask for all archives, fixes #16303. git-svn-id: http://core.svn.wordpress.org/trunk@24812 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rewrite.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 116538203a..e2dbc802a4 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -206,12 +206,19 @@ define('EP_AUTHORS', 2048); */ define('EP_PAGES', 4096); +/** + * Endpoint Mask for all archive views. + * + * @since 3.7.0 + */ +define( 'EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS ); + /** * Endpoint Mask for everything. * * @since 2.1.0 */ -define('EP_ALL', 8191); +define( 'EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES ); /** * Add an endpoint, like /trackback/.