[wp-trac] [WordPress Trac] #43949: Need filter in get_metadata

WordPress Trac noreply at wordpress.org
Wed May 23 13:55:22 UTC 2018


#43949: Need filter in get_metadata
-----------------------------------------+------------------------------
 Reporter:  fitehal                      |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Plugins                      |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------

Comment (by samirmalpande):

 Hi @johnbillion,

 There is another use case where this is required. We use WP Bakery (Visual
 Composer) and Offload S3 in almost all the websites. Offload S3 pushes all
 images to Amazon S3 and updates the url in pages.

 Offload S3 does not update the image urls in database or content of the
 page so if we disable the plugin the original file urls work without
 problem. Offload S3 update the image urls on the fly while the page is
 being generated. This works very well in most of the cases.

 In WP Bakery if we add a background image to any row or column, it stores
 the generated css in postmeta table. While page is being generated this
 css is added to html head tag using wp_head action. Offload S3 replaces
 all the urls in content but is not able to replaces urls which are added
 to head.

 We work on environment where we use multiple servers. The file is not
 available on all the servers. We get 404 errors while loading background
 image. The background image doesn't show if image is not found.

 If we could add filter on meta we would be able to update the urls stored
 in postmeta.

 Thanks,
 Samir

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


More information about the wp-trac mailing list