diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-admin/credits.php --- a/wp/wp-admin/credits.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-admin/credits.php Tue Dec 15 13:49:49 2020 +0100 @@ -7,141 +7,132 @@ */ /** WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); -require_once( dirname( __FILE__ ) . '/includes/credits.php' ); +require_once __DIR__ . '/admin.php'; +require_once __DIR__ . '/includes/credits.php'; $title = __( 'Credits' ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); -include( ABSPATH . 'wp-admin/admin-header.php' ); -?> -
- -

- -

- -

- -

- -
- -
- - - -
- +
+
+
+ +
+ +
+

+ + +

+
+ + +
+ +
+
+

+ + + +

+ worldwide team of passionate individuals. Get involved in WordPress.' ), + __( 'https://wordpress.org/about/' ), + __( 'https://make.wordpress.org/' ) + ); + ?> +

+ + + +

+ +

+

+ Get involved in WordPress.' ), + __( 'https://make.wordpress.org/' ) + ); + ?> +

+ + +
+
+ +'; - printf( - /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ - __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), - 'https://wordpress.org/about/', - __( 'https://make.wordpress.org/' ) - ); - echo '

'; echo '
'; - echo '
'; - include( ABSPATH . 'wp-admin/admin-footer.php' ); + require_once ABSPATH . 'wp-admin/admin-footer.php'; exit; } - -echo '

' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "

\n"; +?> -echo '

' . sprintf( - /* translators: %s: https://make.wordpress.org/ */ - __( 'Want to see your name in lights on this page? Get involved in WordPress.' ), - __( 'https://make.wordpress.org/' ) -) . '

'; +
-foreach ( $credits['groups'] as $group_slug => $group_data ) { - if ( $group_data['name'] ) { - if ( 'Translators' == $group_data['name'] ) { - // Considered a special slug in the API response. (Also, will never be returned for en_US.) - $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); - } elseif ( isset( $group_data['placeholders'] ) ) { - // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText - $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); - } else { - // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText - $title = translate( $group_data['name'] ); - } +
+
+ + + +
+
- echo '

' . esc_html( $title ) . "

\n"; - } +
- if ( ! empty( $group_data['shuffle'] ) ) { - shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. - } +
+
+ + +
+
- switch ( $group_data['type'] ) { - case 'list': - array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); - echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; - break; - case 'libraries': - array_walk( $group_data['data'], '_wp_credits_build_object_link' ); - echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; - break; - default: - $compact = 'compact' == $group_data['type']; - $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); - echo '\n"; - break; - } -} +
-?> -
+ +
+
+ + + +
+
+ +
+ + +
+
+ + +
+