Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54385, comment 27


Ignore:
Timestamp:
11/16/2021 09:25:00 PM (2 years ago)
Author:
stevegs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54385, comment 27

    initial v1  
    66> * Remove an extra empty line
    77> * remove unnecessary `global $wpdb;`
     8`str_contains()` is new in PHP8.  Not everyone has access to PHP8 (one of the many reasons why I took my hosting away from 123-Reg was because they don't offer the latest version of PHP). So I suggest retain the less elegant `strpos()` for now to maintain backward compatibility.