[wp-trac] [WordPress Trac] #9476: add_rewrite_endpoint() doesn't
work
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 7 07:01:37 GMT 2009
#9476: add_rewrite_endpoint() doesn't work
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Permalinks | Version: 2.8
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
While editing a plugin, I've noticed that this fails miserably:
{{{
add_rewrite_endpoint('print', EP_PERMALINK);
}}}
While this succeeds:
{{{
global $wp_rewrite;
$wp_rewrite->add_endpoint('print', EP_PERMALINK);
$wp_rewrite->flush_rules();
}}}
Shouldn't it flush the rules automatically?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9476>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list