[wp-trac] [WordPress Trac] #58057: Replace loose comparison operator in plugins.php

WordPress Trac noreply at wordpress.org
Sun Apr 2 10:36:41 UTC 2023


#58057: Replace loose comparison operator in plugins.php
------------------------------+-----------------------------
 Reporter:  sharif200         |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  trunk
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 The code is using a loose comparison operator (==) instead of a strict
 comparison operator (===). The difference between these operators is that
 a strict comparison checks for both value and data type, while a loose
 comparison only checks for value. This can lead to unexpected behavior and
 potential security vulnerabilities in the code.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list