X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/cc5aa27dd564435b195ea084fa46b3069e78bbff..849f15aeed7a5e39314057bdc0064d8edd60dd7d:/wp-admin/credits.php diff --git a/wp-admin/credits.php b/wp-admin/credits.php index 06fe44b7..d7cbc190 100644 --- a/wp-admin/credits.php +++ b/wp-admin/credits.php @@ -18,7 +18,7 @@ $title = __( 'Credits' ); * * @since 3.2.0 * - * @return array A list of all of the contributors. + * @return array|bool A list of all of the contributors, or false on error. */ function wp_credits() { global $wp_version; @@ -27,6 +27,7 @@ function wp_credits() { $results = get_site_transient( 'wordpress_credits_' . $locale ); if ( ! is_array( $results ) + || false !== strpos( $wp_version, '-' ) || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 ) ) { $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version=$wp_version&locale=$locale" ); @@ -52,7 +53,7 @@ function wp_credits() { * @since 3.2.0 * * @param string &$display_name The contributor's display name, passed by reference. - * @param string $user_name The contributor's username. + * @param string $username The contributor's username. * @param string $profiles URL to the contributor's WordPress.org profile page. * @return string A contributor's display name, hyperlinked to a WordPress.org profile page. */ @@ -81,7 +82,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-
+
@@ -101,7 +102,7 @@ $credits = wp_credits(); if ( ! $credits ) { echo '

' . sprintf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), - 'http://wordpress.org/about/', + 'https://wordpress.org/about/', /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */ __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ) . '

'; include( ABSPATH . 'wp-admin/admin-footer.php' ); @@ -159,8 +160,8 @@ foreach ( $credits['groups'] as $group_slug => $group_data ) { ?>

Get involved in WordPress.' ), - /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */ - __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ); ?>

+ /* translators: URL to the Make WordPress 'Get Involved' landing page used on the credits page */ + __( 'https://make.wordpress.org/' ) ); ?>