[wp-trac] [WordPress Trac] #46132: Opera changed its render engine to Chrome, $is_opera not working

WordPress Trac noreply at wordpress.org
Sat Feb 2 03:59:01 UTC 2019


#46132: Opera changed its render engine to Chrome, $is_opera not working
--------------------------+-----------------------------
 Reporter:  brasofilo     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by brasofilo):

 Thanks for taking a look, @desrosj

 I discovered this when I needed a specific CSS rule for Opera (using the
 {{{body_class}}} filter). And that's because Chrome has an
 [https://bugs.chromium.org/p/chromium/issues/detail?id=878392 ongoing bug]
 not present in Opera: we can't drag bookmarklets into the bookmarks bar
 since Chrome 69.
 I don't think it'd be a good idea to convert {{{$is_opera}}} to
 {{{$is_chrome}}}, this kind of mishap among browsers is bound to happen
 even if everybody changes their render-engine to Chromium :)

 I'm attaching the needed patch, hope the format is correct.
 Checking for Opera has to be done before Chrome's so as not to give a
 false positive.

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


More information about the wp-trac mailing list