[wp-trac] [WordPress Trac] #53405: short circuit before current filters

WordPress Trac noreply at wordpress.org
Tue Jun 15 07:50:15 UTC 2021


#53405: short circuit before current filters
-------------------------+-----------------------------
 Reporter:  shawfactor   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 currently the function get_edit_user_link can be filtered BUT it is only
 after it has gone searching for an appropriate value.

 This is problematic as on multisite this search may call
 get_edit_profile_url and then get_dashboard_url which in turn then runs
 get_blogs_of_user which pulls all the options for every site that the user
 is a member of into memory. This can be huge and completely unnecessary!!

 There needs to be a way to short cicuit this function at the start before
 all this occurs.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53405>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list