[wp-trac] [WordPress Trac] #20279: Functions defined in wp-login.php should be moved to a separate file to make them re-usable

WordPress Trac noreply at wordpress.org
Sat Aug 24 04:04:17 UTC 2013


#20279: Functions defined in wp-login.php should be moved to a separate file to
make them re-usable
-------------------------+------------------
 Reporter:  beaulebens   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.7
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 3.7


Comment:

 I wanted to use `register_new_user()` in a plugin recently, but making it
 reusable currently requires a dirty hack (error suppression is to hide the
 "Constant ABSPATH already defined" notice):
 {{{
 ob_start();
 @require_once( ABSPATH . 'wp-login.php' );
 ob_end_clean();
 }}}
 Moving for review.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20279#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list