From b05307b90c450d125ce28c68cabdafba0d1705d8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 27 Apr 2009 21:11:01 +0000 Subject: [PATCH] Clarify add endpoint phpdoc. Props Denis-de-Bernardy. fixes #9476 git-svn-id: https://develop.svn.wordpress.org/trunk@11102 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 7efb96ef8f..23e1bac0f6 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -178,6 +178,9 @@ define('EP_ALL', 8191); * 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/". * + * Be sure to flush the rewrite rules (wp_rewrite->flush()) when your plugin gets + * activated (register_activation_hook()) and deactivated (register_deactivation_hook()) + * * @since 2.1.0 * @see WP_Rewrite::add_endpoint() Parameters and more description. * @uses $wp_rewrite