4 ms·
Checking out the trac link in the article to the Wordpress source code shows some other interesting things in the PHP source: do_action('retreive_password',
by brown9-2 17y ago
Checking out the trac link in the article to the Wordpress source code shows some other interesting things in the PHP source:
do_action('retreive_password', $user_login); // Misspelled and deprecated
do_action('retrieve_password', $user_login);
Isn't this a verbatim example from the "Signs you are a bad programmer" list from a few days ago? Code that does nothing but is left in anyway to "make sure it all works".
- ionfish 17y agoIt's not code that does nothing, it's there to support a deprecated public API. Someone misspelled 'retrieve' once upon a time, and it made it into the public API, now they have to support it. It's unfortunate, but this is not the wrong way to behave now the issue is there.
- aw3c2 17y agoThings like this are probably what made the Internet Explorer. Mistakes should not be carried with you, eliminate them as soon as you can.