CMS: Unknown
Server IP: 162.214.74.50
Root:
/home/iideug/public_html/harshils.iideug.com
Directory:
home
/
iideug
/
public_html
/
rehan.iideug.com
/
wp-admin
/
includes
File: /home/iideug/public_html/rehan.iideug.com/wp-admin/includes/credits.php
<?php /** * WordPress Credits Administration API. * * @package WordPress * @subpackage Administration * @since 4.4.0 */ /** * Retrieves the contributor credits. * * @since 3.2.0 * @since 5.6.0 Added the `$version` and `$locale` parameters. * * @param string $version WordPress version. Defaults to the current version. * @param string $locale WordPress locale. Defaults to the current user's locale. * @return array|false A list of all of the contributors, or false on error. */ function wp_credits( $version = '', $locale = '' ) { if ( ! $version ) { $version = wp_get_wp_version(); } if ( ! $locale ) { $locale = get_user_locale(); } $results = get_site_transient( 'wordpress_credits_' . $locale ); if ( ! is_array( $results ) || 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( '/' ) ); if ( wp_http_supports( array( 'ssl' ) ) ) { $url = set_url_scheme( $url, 'https' ); } $response = wp_remote_get( $url, $options ); if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { return false; } $results = json_decode( wp_remote_retrieve_body( $response ), true ); if ( ! is_array( $results ) ) { return false; } set_site_transient( 'wordpress_credits_' . $locale, $results, DAY_IN_SECONDS ); } return $results; } /** * Retrieves the link to a contributor's WordPress.org profile page. * * @access private * @since 3.2.0 * * @param string $display_name The contributor's display name (passed by reference). * @param string $username The contributor's username. * @param string $profiles URL to the contributor's WordPress.org profile page. */ function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>'; } /** * Retrieves the link to an external library used in WordPress. * * @access private * @since 3.2.0 * * @param string $data External library data (passed by reference). */ function _wp_credits_build_object_link( &$data ) { $data = '<a href="' . esc_url( $data[1] ) . '">' . esc_html( $data[0] ) . '</a>'; } /** * Displays the title for a given group of contributors. * * @since 5.3.0 * * @param array $group_data The current contributor group. */ function wp_credits_section_title( $group_data = array() ) { if ( ! count( $group_data ) ) { return; } 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 '<h2 class="wp-people-group-title">' . esc_html( $title ) . "</h2>\n"; } } /** * Displays a list of contributors for a given group. * * @since 5.3.0 * * @param array $credits The credits groups returned from the API. * @param string $slug The current group to display. */ function wp_credits_section_list( $credits = array(), $slug = '' ) { $group_data = isset( $credits['groups'][ $slug ] ) ? $credits['groups'][ $slug ] : array(); $credits_data = $credits['data']; if ( ! count( $group_data ) ) { return; } 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 '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; break; case 'libraries': array_walk( $group_data['data'], '_wp_credits_build_object_link' ); echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; break; default: $compact = 'compact' === $group_data['type']; $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); echo '<ul class="' . $classes . '" id="wp-people-group-' . $slug . '">' . "\n"; foreach ( $group_data['data'] as $person_data ) { echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; echo '<a href="' . esc_url( sprintf( $credits_data['profiles'], $person_data[2] ) ) . '" class="web">'; $size = $compact ? 80 : 160; $data = get_avatar_data( $person_data[1] . '@sha256.gravatar.com', array( 'size' => $size ) ); $data2x = get_avatar_data( $person_data[1] . '@sha256.gravatar.com', array( 'size' => $size * 2 ) ); echo '<span class="wp-person-avatar"><img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" /></span>' . "\n"; echo esc_html( $person_data[0] ) . "</a>\n\t"; if ( ! $compact && ! empty( $person_data[3] ) ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; } echo "</li>\n"; } echo "</ul>\n"; break; } }
Name
Size
Modify
Permissions
Actions
admin-filters.php
7.8 kb
2025-10-21 13:46:24
644
U
E
O
D
ajax-actions.php
148.3 kb
2025-08-15 11:01:30
644
U
E
O
D
class-automatic-upgrader-skin.php
3.6 kb
2023-06-22 14:36:26
644
U
E
O
D
class-bulk-plugin-upgrader-skin.php
2.5 kb
2024-05-02 17:20:10
644
U
E
O
D
class-bulk-theme-upgrader-skin.php
2.6 kb
2024-05-02 17:20:10
644
U
E
O
D
class-bulk-upgrader-skin.php
6.6 kb
2024-05-02 17:20:10
644
U
E
O
D
class-file-upload-upgrader.php
4.1 kb
2024-03-07 05:58:16
644
U
E
O
D
class-ftp-pure.php
5.3 kb
2019-11-01 14:57:02
644
U
E
O
D
class-language-pack-upgrader-skin.php
2.8 kb
2024-05-02 17:20:10
644
U
E
O
D
class-plugin-installer-skin.php
11.8 kb
2024-10-03 00:25:16
644
U
E
O
D
class-plugin-upgrader-skin.php
3.2 kb
2023-06-14 06:34:28
644
U
E
O
D
class-theme-installer-skin.php
12.8 kb
2025-11-10 21:08:06
644
U
E
O
D
class-theme-upgrader-skin.php
4.1 kb
2024-02-26 20:35:08
644
U
E
O
D
class-walker-category-checklist.php
5 kb
2024-08-13 23:37:16
644
U
E
O
D
class-walker-nav-menu-checklist.php
5.6 kb
2026-03-11 04:38:13
644
U
E
O
D
class-wp-ajax-upgrader-skin.php
4.1 kb
2023-06-22 14:36:26
644
U
E
O
D
class-wp-application-passwords-list-table.php
6.8 kb
2024-02-16 21:47:12
644
U
E
O
D
class-wp-comments-list-table.php
32.4 kb
2026-02-04 04:46:14
644
U
E
O
D
class-wp-community-events.php
18.2 kb
2025-06-02 15:00:28
644
U
E
O
D
class-wp-importer.php
7.3 kb
2025-03-25 18:36:26
644
U
E
O
D
class-wp-links-list-table.php
9 kb
2024-07-17 15:43:16
644
U
E
O
D
class-wp-list-table-compat.php
1.5 kb
2020-11-14 16:54:08
644
U
E
O
D
class-wp-media-list-table.php
25.3 kb
2025-03-17 18:54:28
644
U
E
O
D
class-wp-ms-sites-list-table.php
21.6 kb
2025-06-27 15:09:32
644
U
E
O
D
class-wp-ms-themes-list-table.php
27.8 kb
2025-03-10 18:16:28
644
U
E
O
D
class-wp-ms-users-list-table.php
15.4 kb
2025-02-27 00:09:24
644
U
E
O
D
class-wp-plugin-install-list-table.php
24.5 kb
2025-07-31 22:49:34
644
U
E
O
D
class-wp-plugins-list-table.php
56.4 kb
2025-09-08 20:58:38
644
U
E
O
D
class-wp-post-comments-list-table.php
1.4 kb
2022-10-04 03:47:16
644
U
E
O
D
class-wp-posts-list-table.php
63.7 kb
2025-07-25 15:17:22
644
U
E
O
D
class-wp-privacy-data-export-requests-list-table.php
5.4 kb
2022-03-10 19:22:02
644
U
E
O
D
class-wp-privacy-data-removal-requests-list-table.php
5.6 kb
2023-09-08 09:32:24
644
U
E
O
D
class-wp-privacy-policy-content.php
31.9 kb
2025-08-27 10:34:28
644
U
E
O
D
class-wp-privacy-requests-table.php
14.4 kb
2025-10-02 21:48:36
644
U
E
O
D
class-wp-site-health-auto-updates.php
14 kb
2024-11-04 15:25:18
644
U
E
O
D
class-wp-site-health.php
121.9 kb
2025-11-04 08:50:36
644
U
E
O
D
class-wp-site-icon.php
6.3 kb
2024-03-02 20:15:14
644
U
E
O
D
class-wp-terms-list-table.php
20.7 kb
2025-07-23 17:00:42
644
U
E
O
D
class-wp-theme-install-list-table.php
15.2 kb
2025-01-21 21:49:22
644
U
E
O
D
class-wp-themes-list-table.php
10.1 kb
2025-08-27 10:34:28
644
U
E
O
D
class-wp-upgrader-skin.php
6.9 kb
2024-05-02 17:20:10
644
U
E
O
D
class-wp-upgrader-skins.php
1.4 kb
2019-10-08 17:19:04
644
U
E
O
D
class-wp-users-list-table.php
18.6 kb
2024-01-10 11:57:16
644
U
E
O
D
continents-cities.php
20.1 kb
2022-09-19 23:24:12
644
U
E
O
D
credits.php
5.7 kb
2024-12-19 03:44:24
644
U
E
O
D
edit-tag-messages.php
1.4 kb
2021-12-07 12:20:02
644
U
E
O
D
media.php
116.3 kb
2025-12-01 14:26:32
644
U
E
O
D
ms-admin-filters.php
1.3 kb
2022-09-20 02:51:10
644
U
E
O
D
privacy-tools.php
32.7 kb
2025-04-21 11:49:32
644
U
E
O
D
taxonomy.php
8.2 kb
2025-06-03 16:51:34
644
U
E
O
D
translation-install.php
10.8 kb
2024-09-11 12:08:20
644
U
E
O
D
update-core.php
68.9 kb
2026-03-12 04:34:12
644
U
E
O
D
upgrade.php
113.3 kb
2025-10-21 04:33:30
644
U
E
O
D