[wp-trac] [WordPress Trac] #44500: Mark data requests failed when an expired link is clicked

WordPress Trac noreply at wordpress.org
Thu Sep 6 18:42:28 UTC 2018


#44500: Mark data requests failed when an expired link is clicked
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Privacy                              |     Version:  4.9.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests                                          |  administration
-------------------------------------------------+-------------------------

Comment (by birgire):

 Just a sidenote:

 I was wondering about the {{{wp_mark_user_request_failed()}}} function, if
 there would be any benefit of generalizing it to e.g.
 {{{wp_set_user_request_status()}}} so it would not only support the failed
 status.

 Similarly we have a function like {{{wp_set_comment_status()}}}, that sets
 the status of a comment and runs the {{{wp_transition_comment_status()}}}
 to call hooks for comment status transitions.

 https://developer.wordpress.org/reference/functions/wp_set_comment_status/
 https://developer.wordpress.org/reference/functions/wp_transition_comment_status/

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


More information about the wp-trac mailing list