-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a62038d
commit e5f7a4b
Showing
2,562 changed files
with
38,996 additions
and
15,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
/** | ||
* Conditional polyfills for functions added in PHP 8.0. The below polyfills are also part of | ||
* WordPress 5.9 and later. So only users on PHP < 8.0 AND WordPress < 5.9 will get these | ||
* functions defined here. | ||
* | ||
* Note, the functions are copied exactly as is from the WordPress 6.2 source. | ||
*/ | ||
|
||
if ( ! function_exists( 'str_contains' ) ) { | ||
/** | ||
* Polyfill for `str_contains()` function added in PHP 8.0. | ||
* | ||
* Performs a case-sensitive check indicating if needle is | ||
* contained in haystack. | ||
* | ||
* @since 5.9.0 | ||
* | ||
* @param string $haystack The string to search in. | ||
* @param string $needle The substring to search for in the haystack. | ||
* @return bool True if `$needle` is in `$haystack`, otherwise false. | ||
*/ | ||
function str_contains( $haystack, $needle ) { | ||
return ( '' === $needle || false !== strpos( $haystack, $needle ) ); | ||
} | ||
} | ||
|
||
if ( ! function_exists( 'str_starts_with' ) ) { | ||
/** | ||
* Polyfill for `str_starts_with()` function added in PHP 8.0. | ||
* | ||
* Performs a case-sensitive check indicating if | ||
* the haystack begins with needle. | ||
* | ||
* @since 5.9.0 | ||
* | ||
* @param string $haystack The string to search in. | ||
* @param string $needle The substring to search for in the `$haystack`. | ||
* @return bool True if `$haystack` starts with `$needle`, otherwise false. | ||
*/ | ||
function str_starts_with( $haystack, $needle ) { | ||
if ( '' === $needle ) { | ||
return true; | ||
} | ||
|
||
return 0 === strpos( $haystack, $needle ); | ||
} | ||
} | ||
|
||
if ( ! function_exists( 'str_ends_with' ) ) { | ||
/** | ||
* Polyfill for `str_ends_with()` function added in PHP 8.0. | ||
* | ||
* Performs a case-sensitive check indicating if | ||
* the haystack ends with needle. | ||
* | ||
* @since 5.9.0 | ||
* | ||
* @param string $haystack The string to search in. | ||
* @param string $needle The substring to search for in the `$haystack`. | ||
* @return bool True if `$haystack` ends with `$needle`, otherwise false. | ||
*/ | ||
function str_ends_with( $haystack, $needle ) { | ||
if ( '' === $haystack && '' !== $needle ) { | ||
return false; | ||
} | ||
|
||
$len = strlen( $needle ); | ||
|
||
return 0 === substr_compare( $haystack, $needle, -$len, $len ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
# This file is distributed under the same license as the WP Offload SES Lite plugin. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: WP Offload SES Lite 1.6.3\n" | ||
"Project-Id-Version: WP Offload SES Lite 1.6.4\n" | ||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-ses\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"POT-Creation-Date: 2023-04-12T14:56:23+00:00\n" | ||
"POT-Creation-Date: 2023-05-18T09:06:59+00:00\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"X-Generator: WP-CLI 2.7.1\n" | ||
"X-Domain: wp-offload-ses\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.