[wp-trac] [WordPress Trac] #34430: Improve the performance of wp_make_content_images_responsive()
WordPress Trac
noreply at wordpress.org
Tue Nov 3 02:04:36 UTC 2015
#34430: Improve the performance of wp_make_content_images_responsive()
------------------------------------------------+------------------------
Reporter: joemcgill | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-docs | Focuses:
------------------------------------------------+------------------------
Comment (by azaozz):
In 34430.11.diff:
- Fix _wp_upload_dir_baseurl() to cache by blog_id.
- Replace `path_join()` with `trailingslashit(). We are joining URLs,
there's no need for the extra checks in path_join() (and it's much
slower).
- Rename `$image_url' to `$image_sec` for consistency (used at about 50
other places).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34430#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list