WordPress/wp-content/themes/twentyseventeen
Sergey Biryukov 1ce5dc7444 Code Modernization: Replace usage of strpos() with str_contains().
`str_contains()` was introduced in PHP 8.0 to perform a case-sensitive check indicating if the string to search in (haystack) contains the given substring (needle).

WordPress core includes a polyfill for `str_contains()` on PHP < 8.0 as of WordPress 5.9.

This commit replaces `false !== strpos( ... )` with `str_contains()` in core files, making the code more readable and consistent, as well as better aligned with modern development practices.

Follow-up to [52039], [52040], [52326], [55703], [55710], [55987].

Props Soean, spacedmonkey, costdev, dingo_d, azaozz, mikeschroder, flixos90, peterwilsoncc, SergeyBiryukov.
Fixes #58206.
Built from https://develop.svn.wordpress.org/trunk@55988


git-svn-id: http://core.svn.wordpress.org/trunk@55500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-22 14:36:26 +00:00
..
assets Twenty Seventeen: Remove IE specific resources. 2023-06-22 06:01:25 +00:00
inc Code Modernization: Replace usage of strpos() with str_contains(). 2023-06-22 14:36:26 +00:00
template-parts Code Modernization: Replace usage of strpos() with str_contains(). 2023-06-22 14:36:26 +00:00
404.php Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
archive.php Twenty Seventeen: Mark one more screen reader string with a translator comment. 2023-02-24 15:26:18 +00:00
comments.php Twenty Seventeen: Mark one more screen reader string with a translator comment. 2023-02-24 15:26:18 +00:00
footer.php Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
front-page.php Bundled Themes: Improve various globals documentation, as per docblock standards. 2023-03-07 08:30:17 +00:00
functions.php Twenty Seventeen: Remove IE specific resources. 2023-06-22 06:01:25 +00:00
header.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
index.php Twenty Seventeen: Mark one more screen reader string with a translator comment. 2023-02-24 15:26:18 +00:00
page.php Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
readme.txt Twenty Seventeen: Remove IE specific resources. 2023-06-22 06:01:25 +00:00
rtl.css Widgets: Add filter to disable RSS widget icon. 2021-11-07 23:04:56 +00:00
screenshot.png
search.php Twenty Seventeen: Mark one more screen reader string with a translator comment. 2023-02-24 15:26:18 +00:00
searchform.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
sidebar.php Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
single.php Twenty Seventeen: Mark one more screen reader string with a translator comment. 2023-02-24 15:26:18 +00:00
style.css Twenty Seventeen: Remove IE specific resources. 2023-06-22 06:01:25 +00:00

=== Twenty Seventeen ===
Contributors: wordpressdotorg
Tested up to: 6.2
Version: 3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns

== Description ==

Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.

For more information about Twenty Seventeen please go to https://wordpress.org/documentation/article/twenty-seventeen/.

== Installation ==

1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Seventeen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://wordpress.org/documentation/article/twenty-seventeen/ for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.

== Copyright ==

Twenty Seventeen WordPress Theme, Copyright 2016-2023 WordPress.org
Twenty Seventeen is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Twenty Seventeen bundles the following third-party resources:

jQuery scrollTo, Copyright 2007-2015 Ariel Flesler
License: MIT
Source: https://github.com/flesler/jquery.scrollTo

normalize.css, Copyright 2012-2016 Nicolas Gallagher and Jonathan Neal
License: MIT
Source: https://necolas.github.io/normalize.css/

Font Awesome icons, Copyright Dave Gandy
License: SIL Open Font License, version 1.1.
Source: http://fontawesome.io/

Libre Franklin Font
Copyright 2020 The LibreFranklin Project Authors (https://github.com/impallari/Libre-Franklin)
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://fontsource.org/fonts/libre-franklin

Bundled header image, Copyright Alvin Engler
License: CC0 1.0 Universal (CC0 1.0)
Source: https://unsplash.com/@englr?photo=bIhpiQA009k

Bundled block pattern images, Copyright Solo Shutter
License: CC0 1.0 Universal (CC0 1.0)
Source: https://stocksnap.io/photo/striped-lines-BTNYMDDCBW
        https://stocksnap.io/photo/striped-lines-5XWOPSWPWX

Bundled block pattern image, Copyright Seacoast Sage
License: CC0 1.0 Universal (CC0 1.0)
Source: https://stocksnap.io/photo/striped-fabric-9CBVWF2CDU

== Changelog ==

= 3.2 =
* Released: March 28, 2023

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_3.2

= 3.1 =
* Released: November 1, 2022

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_3.1

= 3.0 =
* Released: May 24, 2022

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_3.0

= 2.9 =
* Released: January 25, 2022

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.9

= 2.8 =
* Released: July 20, 2021

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.8

= 2.7 =
* Released: April 14, 2021

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.7

= 2.6 =
* Released: March 9, 2021

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.6

= 2.5 =
* Released: December 8, 2020

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.5

= 2.4 =
* Released: August 11, 2020

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.4

= 2.3 =
* Released: March 31, 2020

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.3

= 2.2 =
* Released: May 7, 2019

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.2

= 2.1 =
* Released: February 21, 2019

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.1

= 2.0 =
* Released: January 9, 2019

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.0

= 1.9 =
* Released: December 19, 2018

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.9

= 1.8 =
* Released: December 6, 2018

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.8

= 1.7 =
* Released: August 2, 2018

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.7

= 1.6 =
* Released: May 17, 2018

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.6

= 1.5 =
* Released: April 4, 2018

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.5

= 1.4 =
* Released: November 14, 2017

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.4

= 1.3 =
* Released: June 8, 2017

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.3

= 1.2 =
* Released: April 18, 2017

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.2

= 1.1 =
* Released: January 6, 2017

https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.1

= 1.0 =
* Released: December 6, 2016

Initial release