--- a/wp/wp-admin/includes/credits.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/includes/credits.php Fri Sep 05 18:40:08 2025 +0200
@@ -8,7 +8,7 @@
*/
/**
- * Retrieve the contributor credits.
+ * Retrieves the contributor credits.
*
* @since 3.2.0
* @since 5.6.0 Added the `$version` and `$locale` parameters.
@@ -32,8 +32,8 @@
$results = get_site_transient( 'wordpress_credits_' . $locale );
if ( ! is_array( $results )
- || false !== strpos( $version, '-' )
- || ( isset( $results['data']['version'] ) && strpos( $version, $results['data']['version'] ) !== 0 )
+ || str_contains( $version, '-' )
+ || ( isset( $results['data']['version'] ) && ! str_starts_with( $version, $results['data']['version'] ) )
) {
$url = "http://api.wordpress.org/core/credits/1.1/?version={$version}&locale={$locale}";
$options = array( 'user-agent' => 'WordPress/' . $version . '; ' . home_url( '/' ) );
@@ -61,7 +61,7 @@
}
/**
- * Retrieve the link to a contributor's WordPress.org profile page.
+ * Retrieves the link to a contributor's WordPress.org profile page.
*
* @access private
* @since 3.2.0
@@ -75,7 +75,7 @@
}
/**
- * Retrieve the link to an external library used in WordPress.
+ * Retrieves the link to an external library used in WordPress.
*
* @access private
* @since 3.2.0