WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36033, comment 1


Ignore:
Timestamp:
10/07/2017 11:47:13 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36033, comment 1

    initial v1  
    11Previously brought up in comment:18:ticket:18268.
    22
    3 This was done (in [31104]) for performance reasons, as running `apply_filters()` on each `esc_url()` call would be a performance hit.
     3This was done (in [18826]) for performance reasons, as running `apply_filters()` on each `esc_url()` call would be a performance hit.
    44
    55We can't remove the static variable entirely, but we could probably use the approach from [31104]. If `esc_url()` was called before `plugins_loaded`, it will not prevent plugins from filtering the value on `plugins_loaded` or `init`. See [attachment:36033.patch].