[wp-trac] [WordPress Trac] #55330: Set global_styles_svg_filters transient to return true causing symbol `1` to be appeared on the screen in a production mode

WordPress Trac noreply at wordpress.org
Mon Mar 7 20:20:56 UTC 2022


#55330: Set global_styles_svg_filters transient to return true causing symbol `1`
to be appeared on the screen in a production mode
------------------------------+------------------------------
 Reporter:  aliakseyenkaihar  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  General           |     Version:  5.9.1
 Severity:  trivial           |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by vijayhardaha):

 Hey @aliakseyenkaihar, May I ask why `__return_true` instead of setting
 `__return_false` ? as you mentioned **to prevent from being set** that can
 be done by setting false, since you're setting it true that's validated
 the if condition and you returned content is being printed as 1.

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


More information about the wp-trac mailing list