Make WordPress Core

Opened 12 years ago

Closed 2 years ago

Last modified 2 years ago

#31039 closed enhancement (fixed)

Move retrieve_password() from wp-login.php

Reported by: jfarthing84 Owned by: SergeyBiryukov
Priority: normal Milestone: 5.7
Component: Login and Registration Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Once considered in #20279, I am able to propose a sane way to separate retrieve_password() from wp-login.php.

Attachments (4)

31039.patch (11.9 KB ) - added by jfarthing84 12 years ago.
Separate retrieve_password() from wp-login.php
31039.3.patch (10.9 KB ) - added by dimadin 11 years ago.
31039.2.patch (11.3 KB ) - added by jfarthing84 8 years ago.
31039.4.patch (10.0 KB ) - added by jfarthing84 8 years ago.

Download all attachments as: .zip

Change History (15)

@jfarthing84
12 years ago

Separate retrieve_password() from wp-login.php

#1 @jfarthing84
12 years ago

  • Keywords has-patch dev-feedback added

#2 @dimadin
11 years ago

I propose that we don't add new functions like in previous patch and instead we just copy existing function, introduce new parameter to switch from reliance on $_POST inside of a function.

There is quick and untested patch attached below to give you an impression.

Also, @jfarthing84 hasn't mentioned why should we do this. Thing is that it's impossible to retrieve password the other way than creating your own function. For example, lets say that you have a custom login form outside wp-login.php, you can't access this function so you need to create new one. I already did this a couple of times so that why I'm proposing making this function available to all users.

@dimadin
11 years ago

#3 @jfarthing84
10 years ago

  • Type defect (bug)enhancement

#4 @jfarthing84
8 years ago

  • Keywords needs-refresh added

I would love to see this get into core. I am ready to rebase my patch if a developer would chime in.

@jfarthing84
8 years ago

#5 @jfarthing84
8 years ago

Disregard 31039.2.patch as I accidentally included some changes from another proposed patch.

@jfarthing84
8 years ago

#6 @SergeyBiryukov
8 years ago

  • Milestone Awaiting Review5.0
  • Owner set to SergeyBiryukov
  • Status newreviewing

#7 @SergeyBiryukov
8 years ago

  • Milestone 5.05.1

#8 @pento
8 years ago

  • Milestone 5.1Future Release

This ticket needs reviewing and further consideration.

#9 @SergeyBiryukov
6 years ago

In 50140:

Users: Move retrieve_password() to wp-includes/user.php, for consistency with other user functions.

Follow-up to [25231], [50129].

Props jfarthing84, dimadin.
See #34281, #31039.

#10 @ironprogrammer
2 years ago

  • Keywords dev-feedback needs-refresh removed
  • Milestone Future Release5.8
  • Resolutionfixed
  • Status reviewingclosed

Per [50140] noted in comment:9, this ticket can be marked fixed. I believe this change shipped in 5.8, so setting milestone accordingly.

#11 @ironprogrammer
2 years ago

  • Milestone 5.85.7

Correcting the milestone. Props @dmsnell for helping me figure this out.

Note: See TracTickets for help on using tickets.