Error
jaredatch opened this issue · 3 comments
jaredatch commented
I get this error that kills it. Running 3.5.
Fatal error: Call to undefined function wp_hash_password() in /bbptrunk/wp-includes/user.php on line 1300
MZAWeb commented
Quick question. Where are you executing the generation code?
jaredatch commented
just dropped in the sample code in the plugin file, after the class
MZAWeb commented
Oh, yeah. wp_hash_password is defined in wp-includes/pluggable.php to allow plugins to implement their own. You need to run this after plugins_loaded.
Top of your functions.php should do.
I'll add make sure to throw a notices and a __doing_it_wrong if called before that.