From 5187fc04a2b3b4b6df65c94bdde42e7982997db0 Mon Sep 17 00:00:00 2001
From: Siobhan McKeown <siobhan@wordsforwp.com>
Date: Sun, 30 Sep 2012 14:26:02 +0100
Subject: [PATCH] Updated docs for credits.php
---
wp-admin/credits.php | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/wp-admin/credits.php b/wp-admin/credits.php
index 1367276..c89570f 100644
a
|
b
|
require_once( './admin.php' ); |
11 | 11 | |
12 | 12 | $title = __( 'Credits' ); |
13 | 13 | |
| 14 | /** |
| 15 | * Retrieves the contributor credits |
| 16 | * @since 3.2 |
| 17 | * @uses $wp_version Retrieves the current WordPress version |
| 18 | * |
| 19 | * @return array list of all of the contributors |
| 20 | */ |
14 | 21 | function wp_credits() { |
15 | 22 | global $wp_version; |
16 | 23 | $locale = get_locale(); |
… |
… |
function wp_credits() { |
36 | 43 | return $results; |
37 | 44 | } |
38 | 45 | |
| 46 | /** |
| 47 | * Retrieves the link to the contributor's WordPress.org profile |
| 48 | * |
| 49 | * @since 3.2 |
| 50 | * |
| 51 | * @return string Contributor display name and username, hyperlinked to WordPress.org profile |
| 52 | */ |
39 | 53 | function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { |
40 | 54 | $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>'; |
41 | 55 | } |
42 | 56 | |
| 57 | /** |
| 58 | * Retrieves the external libraries used in WordPress |
| 59 | * |
| 60 | * @since 3.2 |
| 61 | * |
| 62 | * @return string link to external library |
| 63 | */ |
43 | 64 | function _wp_credits_build_object_link( &$data ) { |
44 | 65 | $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>'; |
45 | 66 | } |