[wp-trac] [WordPress Trac] #51379: Add filter to function email_exists()

WordPress Trac noreply at wordpress.org
Thu Oct 15 00:24:00 UTC 2020


#51379: Add filter to function email_exists()
---------------------------------------------+-----------------------------
 Reporter:  apermo                           |       Owner:  SergeyBiryukov
     Type:  feature request                  |      Status:  closed
 Priority:  normal                           |   Milestone:  5.6
Component:  Users                            |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note commit  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by garrett-eclipse):

 Replying to [comment:19 SergeyBiryukov]:
 > Replying to [comment:18 garrett-eclipse]:
 > > I'm ok with it off, just see it as a way to link the two together in
 doc spaces and indicate the function can now behave differently than
 expected if anything has hooked into that filter.
 >
 > I think they would still be linked the same way that `username_exists()`
 currently links to the `username_exists` filter in the
 [https://developer.wordpress.org/reference/functions/username_exists/#related
 "Uses" section].
 >
 > I'm not strongly opposed to adding it to the function, it just seems
 like we don't generally do that for new hooks, as that partially
 duplicates the hook documentation.

 Ah thanks @SergeyBiryukov, I didn't realize there was already some magic
 linking in there. Let's drop it then and drop it off the username_exists
 function as we added in via this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51379#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list