[wp-trac] [WordPress Trac] #46132: Opera changed its render engine to Chrome, $is_opera not working
WordPress Trac
noreply at wordpress.org
Tue Jun 27 16:13:40 UTC 2023
#46132: Opera changed its render engine to Chrome, $is_opera not working
--------------------------+---------------------
Reporter: brasofilo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: General | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by costdev):
* milestone: Future Release => 6.3
Comment:
WordPress Beta Tester uses these globals and received
[https://wordpress.org/support/topic/bug-opera-doesnt-get-correctly-
recognized-as-user-agent/ a support ticket] about this issue.
Given that [https://core.trac.wordpress.org/ticket/46132#comment:2 comment
2] details one difference that existed between Chrome and Opera, the
safest option seems to be adding an extra condition and moving the Opera
branch above the Chrome branch.
For sure, we should explore the purpose and differences of the two and act
accordingly. As this ticket is 4 years old, we should try to make sure
there's accurate detection.
[https://github.com/WordPress/wordpress-develop/pull/4721 PR 4721]
refreshes the patch to use `str_contains()`.
-----
Milestoning for 6.3 as the fix, if accepted, is a straightforward one.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46132#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list