Make WordPress Core


Ignore:
Timestamp:
01/16/2024 04:07:50 PM (17 months ago)
Author:
desrosj
Message:

Twenty Twenty: Revert usage of str_contains() in theme files.

The theme supports WordPress 4.7 or later, while the polyfill for str_contains() only exists in WordPress 5.9 or later.

Follow-up to [55988], [57275].

Merges [57276] to the 6.4 branch.

Props poena, SergeyBiryukov.
See #60241.

Location:
branches/6.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/src/wp-content/themes/twentytwenty/comments.php

    r55988 r57292  
    8181
    8282                // If we're only showing the "Next" link, add a class indicating so.
    83                 if ( ! str_contains( $comment_pagination, 'prev page-numbers' ) ) {
     83                if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) {
    8484                    $pagination_classes = ' only-next';
    8585                }
Note: See TracChangeset for help on using the changeset viewer.