Make WordPress Core


Ignore:
Timestamp:
01/12/2024 07:11:34 PM (12 months ago)
Author:
SergeyBiryukov
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].

Props poena.
See #60241.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/comments.php

    r55988 r57276  
    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.