[wp-trac] [WordPress Trac] #43172: Output Buffering and <pre>

WordPress Trac noreply at wordpress.org
Tue Jan 30 04:45:27 UTC 2018


#43172: Output Buffering and <pre>
-------------------------------------+------------------------------
 Reporter:  briansahagun             |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  4.9.2
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------

Comment (by briansahagun):

 You're right, I tried OB in Twenty Seventeen and it didn't remove the
 formatting of <pre>.

 Replying to [comment:5 dd32]:
 > This doesn't appear to be a WordPress issue from what's presented here.
 >
 > It sounds like perhaps there's a plugin or other code in play which is
 affecting output buffers on your install.
 > You might like to try it on a different server environment and/or look
 into what [http://php.net/manual/en/function.ob-list-handlers.php
 `ob_list_handlers`] reports to see if something is indeed filtering
 buffers. Trying all plugins disabled and trying your code in the default
 theme may also help narrow it down.
 >
 > You may also want to use `ob_get_clean()` instead of calling
 `ob_get_contents()`/`ob_end_clean()` individually too.

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


More information about the wp-trac mailing list