Skip to content

Commit 6195a6a

Browse files
committed
Add Rewrite API Endpoint Mask constants
1 parent 82f4d40 commit 6195a6a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

bootstrap.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,21 @@
3636
define('FS_TIMEOUT', 30);
3737
define('FS_CHMOD_DIR', 0755);
3838
define('FS_CHMOD_FILE', 0644);
39+
40+
// Rewrite API Endpoint Masks.
41+
define('EP_NONE', 0);
42+
define('EP_PERMALINK', 1);
43+
define('EP_ATTACHMENT', 2);
44+
define('EP_DATE', 4);
45+
define('EP_YEAR', 8);
46+
define('EP_MONTH', 16);
47+
define('EP_DAY', 32);
48+
define('EP_ROOT', 64);
49+
define('EP_COMMENTS', 128);
50+
define('EP_SEARCH', 256);
51+
define('EP_CATEGORIES', 512);
52+
define('EP_TAGS', 1024);
53+
define('EP_AUTHORS', 2048);
54+
define('EP_PAGES', 4096);
55+
define('EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS);
56+
define('EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES);

0 commit comments

Comments
 (0)