[wp-trac] [WordPress Trac] #10396: Pick an username during the install

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 23 07:02:23 UTC 2010

#10396: Pick an username during the install
 Reporter:  dcole07          |       Owner:  dancole    
     Type:  task (blessed)   |      Status:  assigned   
 Priority:  normal           |   Milestone:  3.0        
Component:  Upgrade/Install  |     Version:  2.9        
 Severity:  normal           |    Keywords:  needs-patch

Comment(by nacin):

 Quoting from from wp-hackers ([http://lists.automattic.com/pipermail/wp-
 hackers/2010-January/030036.html thread]). It'd be best to keep this in
 the ticket, Trac is the place for this.

 > 1 ) wp_enqueue_script can't load any scripts during the install process,
 because $wp_scripts is empty. What files do I include so I can call
 wp_enqueue_script() and have it find the JavaScript for the password-

 Simply hard-code {{{<script type="text/javascript" src="js/password-
 strength-meter.js"></script>}}}, just as we do with the CSS file.

 > 2 ) Is there a better way to get the number of users in the database
 than using: count( get_users_of_blog() ), because that function creates an
 error due to the fact that there isn't a database table during step 2 of
 the install process.

 We employ a hack in sample-config.php to allow us to be wpdb aware, so we
 can and should run the query directly.

 Post back here if you need help with the patch. It'd be good to get a
 rough pass attached at some point that way feedback can be provided early
 in the process, both programming and UI.

Ticket URL: <http://core.trac.wordpress.org/ticket/10396#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list