[wp-trac] [WordPress Trac] #28352: New filters in wp-activate.php

WordPress Trac noreply at wordpress.org
Mon Jun 13 14:47:21 UTC 2016


#28352: New filters in wp-activate.php
------------------------------------+-----------------------------
 Reporter:  UmeshSingla             |       Owner:  voldemortensen
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  4.6
Component:  Login and Registration  |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:  multisite
------------------------------------+-----------------------------
Changes (by flixos90):

 * keywords:  has-patch needs-refresh => has-patch


Comment:

 [attachment:28352.4.diff] is a new take on this ticket, aiming to simplify
 the process a bit.

 * the code to print the success-/error-related output has been moved to
 separate functions `signup_activation_error()` and
 `signup_activation_process()`
 * the filter `pre_signup_activation_error` can be used to short-circuit
 the process of generating the error output
 * the filter `pre_signup_activation_success` can be used to short-circuit
 the process of generating the success output
 * only `$result` is passed to those filters

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


More information about the wp-trac mailing list