[wp-trac] [WordPress Trac] #47789: NGINX: Request for media-view.js leads to "zero size buf in writer"

WordPress Trac noreply at wordpress.org
Sun Jul 28 13:23:32 UTC 2019


#47789: NGINX: Request for media-view.js leads to "zero size buf in writer"
--------------------------+------------------------------
 Reporter:  d.sturm       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by d.sturm):

 To temporary fix this bug, you could add this filter to force the minified
 version.
 {{{#!php
 <?php
 add_filter(
     'script_loader_src',
     function ($src, $handle) {
         if (false !== stripos($handle, 'media-views')) {
             $src = str_replace('media-views.js', 'media-views.min.js',
 $src);
         }
         return $src;
     },
     10,
     2
 );
 }}}

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


More information about the wp-trac mailing list