rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -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 @@ function wp_credits( $version = '', $locale = '' ) {
$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 @@ function wp_credits( $version = '', $locale = '' ) {
}
/**
* 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 @@ function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
}
/**
* 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